Part Number Hot Search : 
EL5308IU SD101A 2SD382 ML145106 M3H12FAD 30015 SP13TR EMICO
Product Description
Full Text Search
 

To Download PN5120A0HN1 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. introduction this document describes the functionalit y and electrical spec ifications of the transceiver ic pn512. 2. general description the pn512 is a highly integrated transce iver ic for contactless communication at 13.56 mhz. this transceiver ic utilizes an outstanding modulati on and demodulation concept completely integrated for different kinds of contactless communication methods and protocols at 13.56 mhz. the pn512 transceiver ics support 4 different operating modes ? reader/writer mode sup porting iso/iec 14443a/mi fare and felica scheme ? reader/writer mode supporting iso/iec 14443b ? card operation mode sup porting iso/iec 14443a/mi fare and felica scheme ? nfcip-1 mode enabled in reader/writer mode for iso /iec 14443a/mifare, the pn512?s internal transmitter part is able to drive a reader/writer antenna designed to communicate with iso/iec 14443a/ mifare cards and transponders without additional active circuitry. the receiver part provides a robust and effici ent implementation of a demodulation and decoding circuitry for signals from iso/iec 14443a/mifare compatible cards and transponders. the digital part handles the complete iso/iec 14443a framing and error detection (parity & crc). the pn512 supports mifare 1k or mifare 4k emulation products. the pn512 supports contactless communication using mifare higher transfer speeds up to 424 kbit/s in both directions. enabled in reader/writer mode for felica, the pn512 transceiver ic sup ports the felica communication scheme. the receiver part provides a robust and efficient implementation of the demodulation and decod ing circuitry for felica coded signals. the digital part handles the felica framing and error detection like crc. the pn512 supports contactless communication using felica higher transfer speeds up to 424 kbit/s in both directions. the pn512 supports all layers of the iso/iec 14443b reader/writer communication scheme, given correct implementation of ad ditional components, like oscillator, power supply, coil etc. and provided that standardized protocols, e.g. like iso/iec 14443-4 and/or iso/iec 14443b anticollisio n are correctly implemented. pn512 transmission module rev. 3.7 ? 18 may 2011 111337 product data sheet company public
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 2 of 125 nxp semiconductors pn512 transmission module in card operation mode, the pn512 transceiver ic is able to answer to a reader/writer command either according to the felica or iso/iec 14443a/mifare card interface scheme. the pn512 generates the digital load modulated signals and in addition with an external circuit the answer can be sent back to the reader/writer. a complete card functionality is only possible in comb ination with a secure ic using the s 2 c interface. additionally, the pn512 transceiver ic offers t he possibility to communicate directly to an nfcip-1 device in the nfcip-1 mode. the nf cip-1 mode offers different communication mode and transfer speeds up to 424 kbit/s according to the ecma 340 and iso/iec 18092 nfcip-1 standard. the digital part handles the complete nfcip-1 framing and error detection. various host controller interfaces are implemented: ? 8-bit parallel interface 1 ? spi interface ? serial uart (similar to rs232 with voltag e levels according pad voltage supply) ? i 2 c interface. a purchaser of this nxp ic has to take care for appropriate third party patent licenses. 1. 8-bit parallel interface onl y available in hvqfn40 package.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 3 of 125 nxp semiconductors pn512 transmission module 3. features and benefits ? highly integrated analog circuitry to demodulate and decode responses ? buffered output drivers for connecting an antenna with the minimum number of external components ? integrated rf level detector ? integrated data mode detector ? supports iso/iec 14443 a/mifare ? supports iso/iec 14443 b read/write modes ? typical operating distance in read/write mode up to 50 mm depending on the antenna size and tuning ? typical operating distance in nfcip-1 mode up to 50 mm depending on the antenna size and tuning and power supply ? typical operating distance in iso/iec 14443 a/mifare card or felica card operation mode of about 100 mm depending on the antenna size and tuning and the external field strength ? supports mifare 1k or mifare 4k emulation encryption in reader/writer mode ? iso/iec 14443a higher transfer speed comm unication at 212 kbit/s and 424 kbit/s ? contactless communication according to the felica scheme at 212 kbit/s and 424 kbit/s ? integrated rf interface for nfcip-1 up to 424 kbit/s ? s 2 c interface ? additional power supply to directly supply the smart card ic connected via s 2 c ? supported host interfaces ? spi up to 10 mbit/s ? i 2 c-bus interface up to 400 kbd in fast mode, up to 3400 kbd in high-speed mode ? rs232 serial uart up to 1228.8 kbd, with voltage levels dependant on pin voltage supply ? 8-bit parallel interface with and without address latch enable ? fifo buffer handles 64 byte send and receive ? flexible inte rrupt modes ? hard reset with low power function ? power-down mode per software ? programmable timer ? internal oscillator for connecti on to 27.12 mhz quartz crystal ? 2.5 v to 3.6 v power supply ? crc coprocessor ? programmable i/o pins ? internal self-test
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 4 of 125 nxp semiconductors pn512 transmission module 4. quick reference data [1] supply voltages below 3 v reduce the performance in , for example, the achi evable operating distance. [2] v dda , v ddd and v dd(tvdd) must always be the same voltage. [3] v dd(pvdd) must always be the same or lower voltage than v ddd . [4] i pd is the total current for all supplies. [5] i dd(pvdd) depends on the overall load at the digital pins. [6] i dd(tvdd) depends on v dd(tvdd) and the external circuit c onnected to pins tx1 and tx2. [7] during typical circuit operation, the overall current is below 100 ma. [8] typical value using a complementary driv er configuration and an antenna matched to 40 between pins tx1 and tx2 at 13.56 mhz. 5. ordering information table 1. quick reference data symbol parameter conditions min typ max unit v dda analog supply voltage v dd(pvdd) v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.5 - 3.6 v v ddd digital supply voltage v dd(tvdd) tvdd supply voltage v dd(pvdd) pvdd supply voltage [3] 1.6 - 3.6 v v dd(svdd) svdd supply voltage v ssa =v ssd =v ss(pvss) =v ss(tvss) = 0 v 1.6 - 3.6 v i pd power-down current v dda =v ddd = v dd(tvdd) =v dd(pvdd) =3v hard power-down; pin nrstpd set low [4] --5 a soft power-down; rf level detector on [4] --10 a i ddd digital supply current pin dvdd; v ddd =3v - 6.5 9 ma i dda analog supply current pin avdd; v dda = 3 v, commandreg register?s rcvoff bit = 0 -710ma pin avdd; receiver switched off; v dda =3v, commandreg register?s rcvoff bit = 1 -35ma i dd(pvdd) pvdd supply current pin pvdd [5] --40ma i dd(tvdd) tvdd supply current pin tvdd; continuous wave [6] [7] [8] -60100ma t amb ambient temperature hvqfn32, hvqfn40 ? 30 +85 c table 2. ordering information type number package name description version PN5120A0HN1/c2 hvqfn32 plastic thermal enhanced very thin quad flat package; no leads; 32 terminal; body 5 5 0.85 mm sot617-1 pn5120a0hn/c2 hvqfn40 plastic thermal enhanced very thin quad flat package; no leads; 40 terminals; body 6 6 0.85 mm sot618-1
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 5 of 125 nxp semiconductors pn512 transmission module 6. block diagram the analog interface handles the modulation and demodulation of the analog signals according to the card receiving mode, reader/writer mode and nfcip-1 mode communication scheme. the rf level detector detects the presence of an external rf-field delivered by the antenna to the rx pin. the data mode detector detect s a mifare, felica or nfcip- 1 mode in orde r to prepare the internal receiver to demodulate signals, which are sent to the pn512. the communication (s 2 c) interface provides digital signals to support communication for transfer speeds above 424 kbit/s and digita l signals to communic ate to a secure ic. the contactless uart manages the protocol requirements for the communication protocols in cooperation with the host. the fi fo buffer ensures fast and convenient data transfer to and from the host and the contactless uart and vice versa. various host interfaces are implemented to meet different customer requirements. fig 1. simplified block diagram of the pn512 001aaj62 7 host antenna fifo buffer analog interface contactless uart serial uart spi i 2 c-bus register bank
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 6 of 125 nxp semiconductors pn512 transmission module fig 2. detailed block diagram of the pn512 001aak60 2 dvdd nrstpd irq mfin mfout svdd oscin oscout vmid aux1 aux2 rx tvss tx1 tx2 tvdd 16 19 20 17 10, 14 11 13 12 dvss avdd pvss pvdd sda/nss/rx ea i2c 5 2 24 32 1 d1/adr_5 25 d2/adr_4 26 d3/adr_3 27 d4/adr_2 28 d5/adr_1/ sck/dtrq 29 d6/adr_0/ mosi/mx 30 d7/scl/ miso/tx 31 avss 3 6 23 7 8 9 21 22 4 15 18 fifo control mifare classic unit state machine command register programable timer interrupt control crc16 generation and check parallel/serial converter serial data switch transmitter control bit counter parity generation and check frame generation and check bit decoding bit encoding random number generator analog to digital converter i-channel amplifier analog test multiplexor and digital to analog converter i-channel demodulator q-channel amplifier clock generation, filtering and distribution q-clock generation oscillator temperature sensor q-channel demodulator amplitude rating reference voltage 64-byte fifo buffer control register bank spi, uart, i 2 c-bus interface control voltage monitor and power on detect reset control power-down control
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 7 of 125 nxp semiconductors pn512 transmission module 7. pinning information 7.1 pinning fig 3. pinning configuration hvqfn32 (sot617-1) fig 4. pinning configuration hvqfn40 (sot618-1) 001aan212 pn512 transparent top view rx sigin sigout avss nrstpd aux1 pvss aux2 dvss oscin dvdd oscout pvdd irq a1 ale svdd tvss tx1 tvdd tx2 tvss avdd vmid a0 d7 d6 d5 d4 d3 d2 d1 8 17 7 18 6 19 5 20 4 21 3 22 2 23 1 24 9 10 11 12 13 14 15 16 32 31 30 29 28 27 26 25 terminal 1 index area 001aan213 pn512 avss nrstpd sigin aux1 pvss aux2 dvss oscin dvdd oscout pvdd irq a5 nwr a4 nrd a3 ale a2 ncs sigout svdd tvss tx1 tvdd tx2 tvss avdd vmid rx a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 10 21 9 22 8 23 7 24 6 25 5 26 4 27 3 28 2 29 1 30 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 terminal 1 index area transparent top view
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 8 of 125 nxp semiconductors pn512 transmission module 7.2 pin description table 3. pin description hvqfn32 pin symbol type description 1a1i address line 2 pvdd pwr pad power supply 3dvddpwr digital power supply 4 dvss pwr digital ground 5 pvss pwr pad power supply ground 6 nrstpd i not reset and power down: when low, internal current sinks are switched off, the oscillator is inhibited, and the input pads are disconnected from the outside world. with a positive edge on this pin the internal reset phase starts. 7 sigin i communication in terface input: accepts a digital, serial data stream 8 sigout o communication in terface output : delivers a serial data stream 9 svdd pwr s2c pad power supply: provides power to the s 2 c pads 10 tvss pwr transmitter ground: supplies the output stage of tx1 and tx2 11 tx1 o transmitter 1: delivers the modulated 13.56 mhz energy carrier 12 tvdd pwr transmitter power supply: supplies the output stage of tx1 and tx2 13 tx2 o transmitter 2: delivers the modulated 13.56 mhz energy carrier 14 tvss pwr transmitter ground: supplies the output stage of tx1 and tx2 15 avdd pwr analog power supply 16 vmid pwr internal reference voltage: this pin delivers the internal reference voltage. 17 rx i receiver input 18 avss pwr analog ground 19 aux1 o auxiliary outputs: these pins are used for testing. 20 aux2 o 21 oscin i crystal oscillator input: input to the inverting amplifier of the oscillator. this pin is also the input for an externally generated clock (f osc = 27.12 mhz). 22 oscout o crystal oscillator output: output of the inverting am plifier of the oscillator. 23 irq o interrupt request: output to signal an interrupt event 24 ale i address latch enable: signal to latch ad0 to ad5 into the internal address latch when high. 25 to 31 d1 to d7 i/o 8-bit bi-directional data bus. remark: an 8-bit parallel interface is not available. remark: if the host controller selects i 2 c as digital host controlle r interface, these pins can be used to define the i 2 c address. remark: for serial interfaces this pins can be used for test signals or i/os. 32 a0 i address line
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 9 of 125 nxp semiconductors pn512 transmission module table 4. pin description hvqfn40 pin symbol type description 1 to 4 a2 to a5 i address line 5 pvdd pwr pad power supply 6dvddpwr digital power supply 7 dvss pwr digital ground 8 pvss pwr pad power supply ground 9 nrstpd i not reset and power down: when low, internal current sinks are switched off, the oscillator is inhibited, and the input pads are disconnected from the outside world. with a positive edge on this pin the internal reset phase starts. 10 sigin i communication in terface input: accepts a digital, serial data stream 11 sigout o communication in terface output : delivers a serial data stream 12 svdd pwr s 2 c pad power supply: provides power to the s 2 c pads 13 tvss pwr transmitter ground: supplies the output stage of tx1 and tx2 14 tx1 o transmitter 1: delivers the modulated 13.56 mhz energy carrier 15 tvdd pwr transmitter power supply: supplies the output stage of tx1 and tx2 16 tx2 o transmitter 2: delivers the modulated 13.56 mhz energy carrier 17 tvss pwr transmitter ground: supplies the output stage of tx1 and tx2 18 avdd pwr analog power supply 19 vmid pwr internal reference voltage: this pin delivers the internal reference voltage. 20 rx i receiver input 21 avss pwr analog ground 22 aux1 o auxiliary outputs: these pins are used for testing. 23 aux2 o 24 oscin i crystal oscillator input: input to the inverting amplifier of the oscillator. this pin is also the input for an externally generated clock (f osc = 27.12 mhz). 25 oscout o crystal oscillator output: output of the inverting am plifier of the oscillator. 26 irq o interrupt request: output to signal an interrupt event 27 nwr i not write: strobe to write data (applied on d0 to d7) into the pn512 register 28 nrd i not read: strobe to read data from the pn5 12 register (applied on d0 to d7) 29 ale i address latch enable: signal to latch ad0 to ad5 into the internal address latch when high. 30 ncs i not chip select: selects and activates the host controller interface of the pn512 31 to 38 d0 to d7 i/o 8-bit bi-directional data bus. remark: for serial interfaces this pins can be used for test signals or i/os. remark: if the host controller selects i 2 c as digital host controlle r interface, these pins can be used to define the i 2 c address. 39 to 40 a0 to a1 i address line
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 10 of 125 nxp semiconductors pn512 transmission module 8. functional description the pn512 transmission module supports the read/write mode for iso/iec 14443 a/mifare and iso/iec 14443 b using various transfer speeds and modulation protocols. pn512 transceiver ic supports the following operating modes: ? reader/writer mode sup porting iso/iec 14443a/mi fare and felica scheme ? card operation mode sup porting iso/iec 14443a/mi fare and felica scheme ? nfcip-1 mode the modes support different transfer speeds and modulation schemes. the following chapters will explain the different modes in detail. note: all indicated modulation indices and modes in this chapter are system parameters. this means that beside the ic settings a suitab le antenna tuning is required to achieve the optimum performance. 8.1 iso/iec 14443 a/mifare functionality the physical level communication is shown in figure 6 . the physical parameters are described in ta b l e 4 . fig 5. pn512 read/write mode 001aan21 8 battery reader/writer contactless card microcontroller pn512 iso/iec 14443 a card fig 6. iso/iec 14443 a/mifare read/w rite mode communication diagram table 5. communication overview for iso/iec 14443 a/mifare reader/writer communication direction signal type transfer speed 106 kbd 212 kbd 424 kbd reader to card (send data from the pn512 to a card) reader side modulation 100 % ask 100 % ask 100 % ask bit encoding modified miller encoding modified miller encoding modified miller encoding bit length 128 (13.56 s) 64 (13.56 s) 32 (13.56 s) (1) (2) 001aan21 9 pn512 iso/iec 14443 a card iso/iec 14443 a reader
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 11 of 125 nxp semiconductors pn512 transmission module the pn512?s contactless uart and dedicated external host must manage the complete iso/iec 14443 a/mifare protocol. figure 7 shows the data coding and framing according to iso/iec 14443 a/mifare. the internal crc coprocessor calculates the crc value based on iso/iec 14443 a part 3 and handles parity generation internally according to the transfer speed. automatic parity generation can be switched off using the manualrcvreg register?s paritydisable bit. 8.2 iso/iec 14443 b functionality the mfrc523 reader ic fully supports international standard iso 14443 which includes communication schemes iso 14443 a and iso 14443 b. refer to the iso 14443 reference documents identification cards - contactless integrated circuit cards - proximity cards (parts 1 to 4). remark: nxp semiconductors does not offer a soft ware library to enable design-in of the iso 14443 b protocol. card to reader (pn512 receives data from a card) card side modulation subcarrier load modulation subcarrier load modulation subcarrier load modulation subcarrier frequency 13.56 mhz/16 13.56 mhz/16 13.56 mhz/16 bit encoding manchester encoding bpsk bpsk table 5. communication overview for iso/iec 14443 a/mifare reader/writer ?continued communication direction signal type transfer speed 106 kbd 212 kbd 424 kbd fig 7. data coding and framing according to iso/iec 14443 a 001aak58 5 iso/iec 14443 a framing at 106 kbd 8-bit data 8-bit data 8-bit data odd parity odd parity start odd parity start bit is 1 iso/iec 14443 a framing at 212 kbd, 424 kbd and 848 kbd 8-bit data 8-bit data 8-bit data odd parity odd parity start even parity start bit is 0 burst of 32 subcarrier clocks even parity at the end of the frame
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 12 of 125 nxp semiconductors pn512 transmission module 8.3 felica reader/w riter functionality the felica mode is the general reader/writer to ca rd communication scheme according to the felica specification. th e following diagram descri bes the communication on a physical level, the communication overview describes the physical parameters. the contactless uart of pn512 and a dedicated external host controller are required to handle the complete felica protocol. 8.3.1 felica framing and coding to enable the felica communication a 6 byte preamble (00h , 00h, 00h, 0 0h, 00h, 00h) and 2 bytes sync bytes (b2h, 4dh) are sent to synchronize the receiver. the following len byte indicates the length of t he sent data bytes plus the len byte itself. the crc calculation is done according to th e felica definitions with the msb first. to transmit data on the rf interface, the host controller has to send the len- and data- bytes to the pn512's fifo-buffer. the preamble and the sync bytes are generated by the pn512 automatically and must not be writte n to the fifo by the host controller. the pn512 performs inte rnally the crc calculation and adds the result to the data frame. example for felica crc calculation: fig 8. felica reader/writer communication diagram table 6. communication overview for felica reader/writer communication direction felica felica higher transfer speeds transfer speed 212 kbit/s 424 kbit/s pn512 card modulation on reader side 8-30 % ask 8-30 % ask bit coding manchester coding manchester coding bitlength (64/13.56) s (32/13.56) s card pn512 loadmodulation on card side > 12 % ask > 12 % ask bit coding manchester coding manchester coding 2. picc to pcd, > 12 % ask loadmodulation manchester coded, baudrate 212 to 424 kbaud 1. pcd to picc, 8-30 % ask manchester coded, baudrate 212 to 424 kbaud 001aan21 4 pn512 felica card (picc) felica reader (pcd) table 7. felica framing and coding preamble sync len n-data crc 00h 00h 00h 00h 00h 00h b2h 4dh table 8. start value for the c rc polynomial: (00h), (00h) preamble sync len 2 data bytes crc 00h 00h 00h 00h 00h 00h b2h 4dh 03h abh cdh 90h 35h
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 13 of 125 nxp semiconductors pn512 transmission module 8.4 nfcip-1 mode the nfcip-1 communication differentiates between an active and a passive communication mode. ? active communication mode means both the initiator and the target are using their own rf field to transmit data. ? passive communication mode means that the target answers to an initiator command in a load modulation scheme. th e initiator is active in terms of generating the rf field. ? initiator: generates rf field at 13.56 mhz and starts the nfcip-1 communication ? target: responds to initiator command either in a load modulation scheme in passive communication mode or using a self generat ed and self modulated rf field for active communication mode. in order to fully support the nfcip-1 standard the pn512 supports the active and passive communication mode at the transfer spee ds 106 kbit/s, 212 kbit/s and 424 kbit/s as defined in the nfcip-1 standard. fig 9. nfcip-1 mode 001aan21 5 battery initiator: active target: passive or active microcontroller pn512 battery microcontroller pn512
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 14 of 125 nxp semiconductors pn512 transmission module 8.4.1 active communication mode active communication mode means both the initiator and the target are using their own rf field to transmit data. the contactless uart of pn512 and a dedicated host controller are required to handle the nfcip-1 protocol. note: transfer speeds above 424 kbit/s are not defined in the nfcip-1 standard. the pn512 supports these transfer speeds only with dedicated external circuits. fig 10. active communication mode table 9. communication overview for active communication mode communication direction 106 kbit/s 212 kbit/s 424 kbit/s 848 kbit/s 1.69 mbit/s, 3.39 mbit/s initiator target according to iso/iec 14443a 100 % ask, modified miller coded according to felica, 8-30 % ask manchester coded digital capability to handle this communication ta r g e t initiator host nfc initiator powered to generate rf field 1. initiator starts communication at selected transfer speed initial command response 2. target answers at the same transfer speed host nfc initiator powered for digital processing host host nfc target nfc target powered for digital processing powered to generate rf field 001aan216
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 15 of 125 nxp semiconductors pn512 transmission module 8.4.2 passive communication mode passive communication mode means that the targ et answers to an initiator command in a load modulation scheme. the initiator is active meaning generating the rf field. the contactless uart of pn512 and a dedicated host controller are required to handle the nfcip-1 protocol. note: transfer speeds above 424 kbit/s are not defined in the nfcip-1 standard. the pn512 supports these transfer speeds only with dedicated external circuits. fig 11. passive communication mode table 10. communication overview for passive communication mode communication direction 106 kbit/s 212 kbit/s 424 kbit/s 848 kbit/s 1.69 mbit/s, 3.39 mbit/s initiator target according to iso/iec 14443a 100 % ask, modified miller coded according to felica, 8-30 % ask manchester coded digital capability to handle this communication ta r g e t initiator according to iso/iec 14443a subcarrier load modulation, manchester coded according to felica, > 12 % ask manchester coded host nfc initiator powered to generate rf field 1. initiator starts communication at selected transfer speed 2. targets answers using load modulated data at the same transfer speed host nfc target powered for digital processing 001aan217
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 16 of 125 nxp semiconductors pn512 transmission module 8.4.3 nfcip-1 framing and coding the nfcip-1 framing and coding in active and passive communication mode is defined in the nfcip-1 standard. 8.4.4 nfcip-1 protocol support the nfcip-1 protocol is not completely described in this document. for detailed explanation of the protocol refer to the nf cip-1 standard. however the datalink layer is according to the following policy: ? speed shall not be changed while continuum data exchange in a transaction. ? transaction includes initia lization and anticollision me thods and data exchange (in continuous way, meaning no interruption by another transaction). in order not to disturb current infrastructure based on 13.56 mhz general rules to start nfcip-1 communication are defined in the following way. 1. per default nfcip-1 device is in target mode meaning its rf fi eld is switched off. 2. the rf level detector is active. 3. only if application requires the nfcip-1 device shall switch to initiator mode. 4. initiator shall only s witch on its rf field if no external rf field is detected by rf level detector during a time of tidt. 5. the initiator performs initialization a ccording to the selected mode. 8.4.5 mifare card operation mode table 11. framing and coding overview transfer speed framing and coding 106 kbit/s according to the iso/iec 14443a/mifare scheme 212 kbit/s according to the felica scheme 424 kbit/s according to the felica scheme table 12. mifare card operation mode communication direction iso/iec 14443a/ mifare mifare higher transfer speeds transfer speed 106 kbit/s 212 kbit/s 424 kbit/s reader/writer pn512 modulation on reader side 100 % ask 100 % ask 100 % ask bit coding modified miller modified miller modified miller bitlength (128/13.56) s (64/13.56) s (32/13.56) s pn512 reader/ writer modulation on pn512 side subcarrier load modulation subcarrier load modulation subcarrier load modulation subcarrier frequency 13.56 mhz/16 13.56 mhz/16 13.56 mhz/16 bit coding manchester coding bpsk bpsk
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 17 of 125 nxp semiconductors pn512 transmission module 8.4.6 felica card operation mode 9. pn512 register set 9.1 pn512 registers overview table 13. felica card operation mode communication direction felica felica higher transfer speeds transfer speed 212 kbit/s 424 kbit/s reader/writer pn512 modulation on reader side 8-30 % ask 8-30 % ask bit coding manchester coding manchester coding bitlength (64/13.56) s (32/13.56) s pn512 reader/ writer load modulation on pn512 side > 12 % ask load modulation > 12 % ask load modulation bit coding manchester coding manchester coding table 14. pn512 registers overview addr (hex) register name function page 0: command and status 0 pagereg selects the register page 1 commandreg starts and stops command execution 2 comlenreg controls bits to enable and disable the passing of interrupt requests 3 divlenreg controls bits to enable and disable the passing of interrupt requests 4 comirqreg contains interrupt request bits 5 divirqreg contains interrupt request bits 6 errorreg error bits showing the error status of the last command executed 7 status1reg contains status bits for communication 8 status2reg contains status bits of the receiver and transmitter 9 fifodatareg in- and output of 64 byte fifo-buffer a fifolevelreg indicates the number of bytes stored in the fifo b waterlevelreg defines the level for fifo under- and overflow warning c controlreg contains miscellaneous control registers d bitframingreg adjustments for bit oriented frames e collreg bit position of the first bit collision detected on the rf-interface f rfu reserved for future use page 1: command 0 pagereg selects the register page 1 modereg defines general modes for transmitting and receiving 2 txmodereg defines the data rate and framing during transmission 3 rxmodereg defines the data rate and framing during receiving 4 txcontrolreg controls the logical behavior of the antenna driver pins tx1 and tx2 5 txautoreg controls the sett ing of the antenna drivers
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 18 of 125 nxp semiconductors pn512 transmission module 6 txselreg selects the internal sources for the antenna driver 7 rxselreg selects internal receiver settings 8 rxthresholdreg selects thresholds for the bit decoder 9 demodreg defines demodulator settings a felnfc1reg defines the length of t he valid range for the receive package b felnfc2reg defines the length of t he valid range for the receive package c mifnfcreg controls the communication in iso/iec 14443/mifare and nfc target mode at 106 kbit d manualrcvreg allows manual fine tuning of the internal receiver e typebreg configure the iso/iec 14443 type b f serialspeedreg selects the speed of the serial uart interface page 2: cfg 0 pagereg selects the register page 1 crcresultreg shows the actual msb and lsb values of the crc calculation 2 3 gsnoffreg selects the conductance of the antenna driver pins tx1 and tx2 for modulation, when the dr iver is switched off 4 modwidthreg controls the setting of the modwidth 5 txbitphasereg adjust the tx bit phase at 106 kbit 6 rfcfgreg configures the receiver gain and rf level 7 gsnonreg selects the conductance of the antenna driver pins tx1 and tx2 for modulation when the drivers are switched on 8 cwgspreg selects the conductance of th e antenna driver pins tx1 and tx2 for modulation during times of no modulation 9 modgspreg selects the conductance of the antenna driver pins tx1 and tx2 for modulation during modulation a tmodereg tprescalerreg defines settings for the internal timer b c treloadreg describes the 16-bit timer reload value d e tcountervalreg shows the 16-bit actual timer value f page 3: testregister 0 pagereg selects the register page 1 testsel1reg general test signal configuration 2 testsel2reg general test signal configuration and prbs control 3 testpinenreg enables pin output driver on 8-bit parallel bus (note: for serial interfaces only) 4testpin valuereg defines the values for the 8-bit parallel bus when it is used as i/o bus 5 testbusreg shows the status of the internal testbus 6 autotestreg controls the digital selftest table 14. pn512 registers overview ?continued addr (hex) register name function
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 19 of 125 nxp semiconductors pn512 transmission module 9.1.1 register bit behavior depending on the functionality of a register, the access conditions to the register can vary. in principle bits with same behavior are grouped in common registers. in ta b l e 1 5 the access conditions are described. 7 versionreg shows the version 8 analogtestreg controls the pins aux1 and aux2 9 testdac1reg defines the test value for the testdac1 a testdac2reg defines the test value for the testdac2 b testadcreg shows the actual value of adc i and q c-f rft reserved for production tests table 14. pn512 registers overview ?continued addr (hex) register name function table 15. behavior of register bits and its designation abbreviation behavior description r/w read and write these bits can be written and read by the -controller. since they are used only for control means, ther e content is not influenced by internal state machines, e.g. the pageselect-register may be written and read by the -controller. it will also be read by internal state machines, but never changed by them. dy dynamic these bits can be written and read by the -controller. nevertheless, they may also be wr itten automatically by internal state machines, e.g. the comm and-register changes its value automatically after the execut ion of the actual command. r read only these registers hold bits, which value is determined by internal states only, e.g. the crcread y bit can not be written from external but shows internal states. w write only reading these registers returns always zero. rfu - these registers are reserved for future use. in case of a pn512 version v1.2 (versionreg = 82h) a read access to these registers re turns always the value ?0?. nevertheless this is not guaranteed for future chips versions where the value is undefined. in case of a write access, it is recommended to write always the value ?0?. rft - these registers are reserved for production tests and shall not be changed.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 20 of 125 nxp semiconductors pn512 transmission module 9.2 register description 9.2.1 page 0: command and status 9.2.1.1 pagereg selects the register page. 9.2.1.2 commandreg starts and stops command execution. table 16. pagereg register (address 00h); reset value: 00h, 0000000b 7 6 5 4 3 2 1 0 usepage select 0 0 0 0 0 pageselect access rights r/w rfu rfu rfu rfu rfu r/w r/w table 17. description of pagereg bits bit symbol description 7 usepageselect set to logic 1, the value of pageselect is used as register address a5 and a4. the lsb-bits of the register address are defined by the address pins or the internal address latch, respectively. set to logic 0, the whole content of the internal address latch defines the register address. the address pins are used as described in section 10.1 ? automatic microcontroller interface detection ? . 6 to 2 - reserved for future use. 1 to 0 pageselect the value of pageselect is used only if usepageselect is set to logic 1. in this case it specifies the register page (which is a5 and a4 of the register address). table 18. commandreg register (address 01h); reset value: 20h, 00100000b 7 6 5 4 3 2 1 0 0 0 rcvoff power down command access rights rfurfur/w dy dydydydy table 19. description of commandreg bits bit symbol description 7 to 6 - reserved for future use. 5 rcvoff set to logic 1, the analog part of the receiver is switched off. 4 powerdown set to logic 1, soft power-down mode is entered. set to logic 0, the pn512 starts the wake up procedure. during this procedure this bit still shows a 1. a 0 indicates that the pn512 is ready for operations; see section 16.2 ? soft power-down mode ? . note: the bit power down cannot be set, when the command softreset has been activated. 3 to 0 command activates a command according to the command code. reading this register shows, which comman d is actually executed (see section 19.3 ? pn512 command overview ? ).
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 21 of 125 nxp semiconductors pn512 transmission module 9.2.1.3 commienreg control bits to enable and disable the passing of interrupt requests. table 20. commienreg register (address 02h); reset value: 80h, 10000000b 7 6 5 4 3 2 1 0 irqinv txien rxien idleien hialert ien loalertien errien timerien access rights r/w r/w r/w r/w r/w r/w r/w r/w table 21. description of commienreg bits bit symbol description 7 irqinv set to logic 1, the signal on pin irq is inverted with respect to bit irq in the register status1reg. set to logic 0, the signal on pin irq is equal to bit irq. in combination with bit irqpushpull in register divienreg, the default value of 1 ensures, that the output level on pin irq is 3-state. 6 txien allows the transmitter interrupt request (indicated by bit txirq) to be propagated to pin irq. 5 rxien allows the receiver interrupt re quest (indicated by bit rxirq) to be propagated to pin irq. 4 idleien allows the idle interrupt request (indicated by bit idleirq) to be propagated to pin irq. 3 hialertien allows the high alert interrupt request (indicated by bit hialertirq) to be propagated to pin irq. 2 loalertien allows the low alert interrupt re quest (indicated by bit loalertirq) to be propagated to pin irq. 1 errien allows the error interrupt request (indicated by bit erri rq) to be propagated to pin irq. 0 timerien allows the timer interrupt reque st (indicated by bit timerirq) to be propagated to pin irq.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 22 of 125 nxp semiconductors pn512 transmission module 9.2.1.4 divienreg control bits to enable and disable the passing of interrupt requests. table 22. divienreg register (address 03h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 irqpushpull 0 0 siginactien modeien crcien rfonien rfoffien access rights r/w rfu rfu r/w r/w r/w r/w r/w table 23. description of divienreg bits bit symbol description 7 irqpushpull set to logic 1, the pin irq works as standard cmos output pad. set to logic 0, the pin irq works as open drain output pad. 6 to 5 - reserved for future use. 4 siginactien allows the sigin active inte rrupt request to be propagated to pin irq. 3 modeien allows the mode interrupt req uest (indicated by bit modeirq) to be propagated to pin irq. 2 crcien allows the crc interrupt request (indicated by bit crcirq) to be propagated to pin irq. 1 rfonien allows the rf field on interrupt request (indicated by bit rfonirq) to be propagated to pin irq. 0 rfoffien allows the rf field off interrupt request (indicated by bit rfoffirq) to be propagated to pin irq.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 23 of 125 nxp semiconductors pn512 transmission module 9.2.1.5 commirqreg contains interrupt request bits. table 24. commirqreg register (address 04h); reset value: 14h, 00010100b 7 6 5 4 3 2 1 0 set1 txirq rxirq idleirq hialertirq loalertirq errirq timerirq access rights w dydydy dy dy dy dy table 25. description of commirqreg bits all bits in the register commirqreg shall be cleared by software. bit symbol description 7 set1 set to logic 1, set1 defines that t he marked bits in the register commirqreg are set. set to logic 0, set1 defines, that the marked bits in the register commirqreg are cleared. 6 txirq set to logic 1 immediately after the last bit of the transmitted data was sent out. 5 rxirq set to logic 1 when the receiver detects the end of a valid datastream. if the bit rxnoerr in register rxmodereg is set to logic 1, bit rxirq is only set to logic 1 when data bytes are available in the fifo. 4 idleirq set to logic 1, when a command terminates by itself e.g. when the commandreg changes its value from any command to the idle command. if an unknown command is started, th e commandreg changes its content to the idle state and the bit idleirq is set. starting the idle command by the -controller does not set bit idleirq. 3 hialertirq set to logic 1, when bit hialert in register status1reg is set. in opposition to hialert, hialertirq stores this event and can only be reset as indicated by bit set1. 2 loalertirq set to logic 1, when bit loalert in register status1reg is set. in opposition to loalert, loalertirq stores this event and can only be reset as indicated by bit set1. 1 errirq set to logic 1 if any error bit in the error register is set. 0 timerirq set to logic 1 when the timer decrements the timervalue register to zero.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 24 of 125 nxp semiconductors pn512 transmission module 9.2.1.6 divirqreg contains interrupt request bits table 26. divirqreg register (address 05h); reset value: xxh, 000x00xxb 7 6 5 4 3 2 1 0 set2 0 0 siginactirq modeirq crcirq rfonirq rfoffirq access rights wrfurfu dy dy dy dy dy table 27. description of divirqreg bits all bits in the register divirqreg shall be cleared by software. bit symbol description 7 set2 set to logic 1, set2 defines that the marked bits in the register divirqreg are set. set to logic 0, set2 defines, that the marked bits in the register divirqreg are cleared 6 to 5 - reserved for future use. 4 siginactirq set to logic 1, when sigin is active. see section 12.6 ? s 2 c interface support ? . this interrupt is set when either a rising or falling signal edge is detected. 3 modeirq set to logic 1, when the mode has been detected by the data mode detector. note: the data mode detector can only be activated by the autocoll command and is terminated automatically having detected the communication mode. note: the data mode detector is automatically restarted after each rf reset. 2 crcirq set to logic 1, when the crc command is active and all data are processed. 1 rfonirq set to logic 1, when an external rf field is detected. 0 rfoffirq set to logic 1, when a present external rf field is switched off.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 25 of 125 nxp semiconductors pn512 transmission module 9.2.1.7 errorreg error bit register showing the error status of the last command executed. [1] command execution will clear all error bits except for bit temperr. a setting by software is impossible. table 28. errorreg register (address 06h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 wrerr temperr rferr bufferovfl collerr crcerr parityerr protocolerr access rights rrrr rrr r table 29. description of errorreg bits bit symbol description 7 wrerr set to logic 1, when data is written into fifo by the host controller during the autocoll command or mfauthent command or if data is written into fifo by the host c ontroller during the time between sending the last bit on the rf interface and receiving the last bit on the rf interface. 6 temperr [1] set to logic 1, if the internal temperature sensor detects overheating. in this case, the antenna drivers are switched off automatically. 5 rferr set to logic 1, if in active co mmunication mode the counterpart does not switch on the rf field in time as defined in nfcip-1 standard. note: rferr is only used in active communication mode. the bits rxframing or the bits txframing has to be set to 01 to enable this functionality. 4 bufferovfl set to logic 1, if the host cont roller or a pn512?s internal state machine (e.g. receiver) tries to write data into the fifo-bufferfifo-buffer although the fifo-buffer is already full. 3 collerr set to logic 1, if a bit-collision is detected. it is clear ed automatically at receiver start-up phase. this bi t is only valid during the bitwise anticollision at 106 kbit. during communication schemes at 212 and 424 kbit this bit is always set to logic 1. 2 crcerr set to logic 1, if bit rxcrcen in register rxmodereg is set and the crc calculation fails. it is cleared to 0 automatically at receiver start-up phase. 1 parityerr set to logic 1, if the parity check has failed. it is cleared automatically at receiver start-up phase. only valid for iso/iec 14443a/mifare or nfcip-1 communication at 106 kbit. 0 protocolerr set to logic 1, if one out of the following cases occur: ? set to logic 1 if the sof is incorrect. it is cleared automatically at receiver start-up phase. the bit is only valid for 106 kbit in active and passive communication mode. ? if bit detectsync in register modereg is set to logic 1 during felica communication or active communication with transfer speeds higher than 106 kbit, the bit protocolerr is set to logic 1 in case of a byte length violation. ? during the autocoll command, bit protocolerr is set to logic 1, if the bit initiator in register controlreg is set to logic 1. ? during the mfauthent command, bi t protocolerr is set to logic 1, if the number of bytes received in one data stream is incorrect. ? set to logic 1, if the miller decoder detects 2 pulses below the minimum time according to the iso/iec 14443a definitions.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 26 of 125 nxp semiconductors pn512 transmission module 9.2.1.8 status1reg contains status bits of the crc, interrupt and fifo-buffer. table 30. status1reg register (address 07h); reset value: xxh, x100x01xb 7 6 5 4 3 2 1 0 rffreqok crcok crcready irq trunning rfon hialert loalert access rights rr rrrrrr table 31. description of status1reg bits bit symbol description 7 rffreqok indicates if the frequency detect ed at the rx pin is in the range of 13.56 mhz. set to logic 1, if the frequency at the rx pin is in the range 12 mhz < rx pin frequency < 15 mhz. note: the value of rffreqok is not defined if the external rf frequency is in the range from 9 to 12 mhz or in the range from 15 to 19 mhz. 6 crcok set to logic 1, if the crc result is zero. for data transmission and reception the bit crcok is undefined (use crcerr in register errorreg). crcok indicates the st atus of the crc co-processor, during calculation the value changes to zero, when the calculation is done correctly, the value changes to one. 5 crcready set to logic 1, when the crc calculation has finished. this bit is only valid for the crc co-processor calculation using the command calccrc. 4 irq this bit shows, if any interrupt so urce requests attention (with respect to the setting of the interrupt enable bits, see register commienreg and divienreg). 3 trunning set to logic 1, if the pn512?s timer unit is running, e.g. the timer will decrement the tcountervalreg with the next timer clock. note: in the gated mode the bit trunning is set to logic 1, when the timer is enabled by the register bits. this bit is not influenced by the gated signal. 2 rfon set to logic 1, if an external rf field is detected. this bit does not store the state of the rf field. 1 hialert set to logic 1, when the number of bytes stored in the fifo-buffer fulfills the following equation: example: fifolength = 60, waterlevel = 4 hialert = 1 fifolength = 59, waterlevel = 4 hialert = 0 0 loalert set to logic 1, when the number of bytes stored in the fifo-buffer fulfills the following equation: example: fifolength = 4, waterlevel = 4 loalert = 1 fifolength = 5, waterlevel = 4 loalert = 0 hialert 64 fifolength ? ) ( waterlevel = loalert fifolength waterlevel =
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 27 of 125 nxp semiconductors pn512 transmission module 9.2.1.9 status2reg contains status bits of the receiver, transmitter and data mode detector. table 32. status2reg register (address 08h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 tempsensclear i 2 cforcehs 0 targetactivated mfcrypto1on modem state access rights r/w r/w rfu dy dy r r r table 33. description of status2reg bits bit symbol description 7 tempsensclear set to logic 1, this bit clears the temperature error, if the temperature is below the alarm limit of 125 c. 6i 2 cforcehs i 2 c input filter settings. set to logic 1, the i 2 c input filter is set to the high-speed mode independent of the i 2 c protocol. set to logic 0, the i 2 c input filter is set to the used i 2 c protocol. 5 - reserved for future use. 4 targetactivated set to logic 1 if the sele ct command or if the polling command was answered. note: this bit can only be set during the autocoll command in passive communication mode. note: this bit is cleared automatically by switching off the external rf field. 3 mfcrypto1on this bit indicates that th e mifare crypto1 unit is switched on and therefore all data communication with the card is encrypted. this bit can only be set to logic 1 by a successful execution of the mfauthent command. this bit is on ly valid in reader/writer mode for mifare cards. this bit sh all be cleared by software. 2 to 0 modem state modemstate shows the state of the transmitter and receiver state machines. value description 000 idle 001 wait for startsend in register bitframingreg 010 txwait: wait until rf field is present, if the bit txwaitrf is set to logic 1. the minimum time for txwait is defined by the txwaitreg register. 011 sending 100 rxwait: wait until rf field is present, if the bit rxwaitrf is set to logic 1. the minimum time for rxwait is defined by the rxwaitreg register. 101 wait for data 110 receiving
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 28 of 125 nxp semiconductors pn512 transmission module 9.2.1.10 fifodatareg in- and output of 64 byte fifo-buffer. 9.2.1.11 fifolevelreg indicates the number of bytes stored in the fifo. table 34. fifodatareg regi ster (address 09h); reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 fifodata access rights dy dy dy dy dy dy dy dy table 35. description of fifodatareg bits bit symbol description 7 to 0 fifodata data input and output port for the internal 64 byte fifo-buffer. the fifo-buffer acts as parallel in/para llel out converter for all serial data stream in- and outputs. table 36. fifolevelreg register (address 0ah); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 flushbuffer fifolevel access rights w rrrrrrr table 37. description of fifolevelreg bits bit symbol description 7 flushbuffer set to logic 1, this bit clears the internal fifo-buffer?s read- and write-pointer and the bit bufferovfl in the register errreg immediately. reading this bit will always return 0. 6 to 0 fifolevel indicates the number of bytes stored in the fifo-buffer. writing to the fifodatareg increments, reading decrements the fifolevel.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 29 of 125 nxp semiconductors pn512 transmission module 9.2.1.12 waterlevelreg defines the level for fifo under- and overflow warning. 9.2.1.13 controlreg miscellaneous control bits. table 38. waterlevelreg register (address 0bh); reset value: 08h, 00001000b 7 6 5 4 3 2 1 0 0 0 waterlevel access rights rfu rfu r/w r/w r/w r/w r/w r/w table 39. description of waterlevelreg bits bit symbol description 7 to 6 - reserved for future use. 5 to 0 waterlevel this register defines a warning level to indicate a fifo-buffer over- or underflow: the bit hialert in status1reg is se t to logic 1, if the remaining number of bytes in the fifo-buffer spac e is equal or less than the defined number of waterlevel bytes. the bit loalert in status1reg is set to logic 1, if equal or less than waterlevel bytes are in the fifo. note: for the calculation of hialert and loalert see ta b l e 3 0 table 40. controlreg register (address 0ch); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 tstopnow tstartnow wrnfcidtofifo initiator 0 rxlastbits access rights w w dy r/wrfurrr table 41. description of controlreg bits bit symbol description 7 tstopnow set to logic 1, the timer stops immediately. reading this bit will always return 0. 6 tstartnow set to logic 1 st arts the timer immediately. reading this bit will always return 0. 5 wrnfcidtofifo set to logic 1, the internal stored nfcid (10 bytes) is copied into the fifo. afterwards the bit is cleared automatically 4 initiator set to logic 1, the pn512 acts as initiator, otherwise it acts as target 3 - reserved for future use. 2 to 0 rxlastbits shows the number of valid bits in the last received byte. if zero, the whole byte is valid.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 30 of 125 nxp semiconductors pn512 transmission module 9.2.1.14 bitframingreg adjustments for bit oriented frames. table 42. bitframingreg register (address 0dh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 startsend rxalign 0 txlastbits access rights w r/w r/w r/w rfu r/w r/w r/w table 43. description of bitframingreg bits bit symbol description 7 startsend set to logic 1, the transmission of data starts. this bit is only valid in combination with the transceive command. 6 to 4 rxalign used for reception of bit orie nted frames: rxalign defines the bit position for the first bit received to be stored in the fifo. further received bits are stored at the following bit positions. example: rxalign = 0: the lsb of the received bit is stored at bit 0, the second received bit is stored at bit position 1. rxalign = 1: the lsb of the received bit is stored at bit 1, the second received bit is stored at bit position 2. rxalign = 7: the lsb of the received bit is stored at bit 7, the second received bit is stored in the following byte at bit position 0. this bit shall only be used for bitwise anticollision at 106 kbit/s in passive communication mode. in all other modes it shall be set to logic 0. 3 - reserved for future use. 2 to 0 txlastbits used for transmission of bit oriented frames: txlastbits defines the number of bits of the last byte th at shall be transmitted. a 000 indicates that all bits of the last byte shall be transmitted.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 31 of 125 nxp semiconductors pn512 transmission module 9.2.1.15 collreg defines the first bit collision detected on the rf interface. table 44. collreg register (addre ss 0eh); reset value: xxh, 101xxxxxb 7 6 5 4 3 2 1 0 values aftercoll 0collpos notvalid collpos access rights r/wrfurrrrrr table 45. description of collreg bits bit symbol description 7 valuesaftercoll if this bit is set to logic 0, all receiving bits will be cleared after a collision. this bit shall only be used during bitwise anticollision at 106 kbit, otherwise it shall be set to logic 1. 6 - reserved for future use. 5 collposnotvalid set to logic 1, if no collision is detected or the position of the collision is out of the range of bits collpos. this bit shall only be interpreted in passive communication mode at 106 kbit or iso/iec 14443a/mifare reader/writer mode. 4 to 0 collpos these bits show the bit position of the first detected collision in a received frame, only data bits are interpreted. example: 00h indicates a bit collision in the 32 th bit 01h indicates a bit collision in the 1 st bit 08h indicates a bit collision in the 8 th bit these bits shall only be interpreted in passive communication mode at 106 kbit or iso/iec 14443a/mifare reader/writer mode if bit collposnotvalid is set to logic 0.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 32 of 125 nxp semiconductors pn512 transmission module 9.2.2 page 1: communication 9.2.2.1 pagereg selects the register page. table 46. pagereg register (address 10h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 usepage select00000 pageselect access rights r/w rfu rfu rfu rfu rfu r/w r/w table 47. description of pagereg bits bit symbol description 7 usepage select set to logic 1, the value of pageselect is used as register address a5 and a4. the lsb-bits of the register address are defined by the address pins or the internal address latch, respectively. set to logic 0, the whole content of the internal address latch defines the register address. the address pins are used as described in section 10.1 ? automatic microcontroller interface detection ? . 6 to 2 - reserved for future use. 1 to 0 pageselect the value of pageselect is used only, if usepageselect is set to logic 1. in this case it specifies the register page (which is a5 and a4 of the register address).
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 33 of 125 nxp semiconductors pn512 transmission module 9.2.2.2 modereg defines general mode settings for transmitting and receiving. table 48. modereg register (address 11h); reset value: 3bh, 00111011b 7 6 5 4 3 2 1 0 msbfirst detect sync txwaitrf rxwaitrf polsigin modedetoff crcpreset access rights r/w r/w r/w r/w r/w r/w r/w r/w table 49. description of modereg bits bit symbol description 7 msbfirst set to logic 1, the crc co-processor calculates the crc with msb first and the crcresultmsb and the crcresultlsb in the crcresultreg register are bit reversed. note: during rf communication this bit is ignored. 6 detect sync if set to logic 1, the contactless uart waits for the value f0h before the receiver is activated and f0h is added as a sync-byte for transmission. this bit is only valid for 106 kbit during nfcip-1 data exchange protocol. in all other modes it shall be set to logic 0. 5 txwaitrf set to logic 1 the transmitter in reader/writer or initiator mode for nfcip-1 can only be started, if an rf field is generated. 4 rxwaitrf set to logic 1, the counter for rx wait starts only if an external rf field is detected in target mode for nfcip-1 or in card communication mode. 3 polsigin polsigin defines the polarity of the sigin pin. set to logic 1, the polarity of sigin pin is active high. set to logic 0 the polarity of sigin pin is active low. note: the internal envelope signal is coded active low. note: changing this bit will generate a siginactirq event. 2 modedetoff set to logic 1, the internal mode detector is switched off. note: the mode detector is only active during the autocoll command. 1 to 0 crcpreset defines the preset value for the crc co-processor for the command calcrc. note: during any communication, the preset values is selected automatically according to the def inition in the bits rxmode and txmode. value description 00 0000 01 6363 10 a671 11 ffff
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 34 of 125 nxp semiconductors pn512 transmission module 9.2.2.3 txmodereg defines the data rate and framing during transmission. table 50. txmodereg register (addre ss 12h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 txcrcen txspeed invmod txmix txframing access rights r/w dy dy dy r/w r/w dy dy table 51. description of txmodereg bits bit symbol description 7 txcrcen set to logic 1, this bit enables the crc generation during data transmission. note: this bit shall only be set to logic 0 at 106 kbit. 6 to 4 txspeed defines the bit rate while data transmission. value description 000 106 kbit 001 212 kbit 010 424 kbit 011 848 kbit 100 1696 kbit 101 3392 kbit 110 reserved 111 reserved note: the bit coding for transfer speeds above 424 kbit is equivalent to the bit coding of active communication mode 424 kbit (ecma 340). 3 invmod set to logic 1, the modulation for transmitting data is inverted. 2 txmix set to logic 1, the signal at pin sigin is mixed with the internal coder (see section 12.6 ? s 2 c interface support ? ). 1 to 0 txframing defines the framing used for data transmission. value description 00 iso/iec 14443a/mifare and passive communication mode 106 kbit 01 active communication mode 10 felica and passive communication mode 212 and 424 kbit 11 iso/iec 14443b
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 35 of 125 nxp semiconductors pn512 transmission module 9.2.2.4 rxmodereg defines the data rate and framing during reception. table 52. rxmodereg register (address 13h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 rxcrcen rxspeed rxnoerr rxmultiple rxframing access rights r/w dydydyr/w r/w dy dy table 53. description of rxmodereg bits bit symbol description 7 rxcrcen set to logic 1, this bit enables the crc calculation during reception. note: this bit shall only be set to logic 0 at 106 kbit. 6 to 4 rxspeed defines the bit rate while data transmission. the pn512?s analog part handles only transfer speeds up to 424 kbit internally, the digital uart handles the higher transfer speeds as well. value description 000 106 kbit 001 212 kbit 010 424 kbit 011 848 kbit 100 1696 kbit 101 3392 kbit 110 reserved 111 reserved note: the bit coding for transfer speeds above 424 kbit is equivalent to the bit coding of active communication mode 424 kbit (ecma 340). 3 rxnoerr if set to logic 1 a not valid received data stream (less than 4 bits received) will be ignored. the receiver will remain active. for iso/iec14443b also rxsofreq logic 1 is required to ignore a non valid datastream. 2 rxmultiple set to logic 0, the receiver is deactivated after receiving a data frame. set to logic 1, it is possible to receive more than one data frame. having set this bit, the receive and tr ansceive commands will not terminate automatically. in this case the multiple receiving can only be deactivated by writing any command (except the receive command) to the commandreg register or by clearing the bit by the host controller. if set to logic 1, at the end of a received data stream an error byte is added to the fifo. the error byte is a copy of the errorreg register. 1 to 0 rxframing defines the expected framing for data reception. value description 00 iso/iec 14443a/mifare and passive communication mode 106 kbit 01 active communication mode 10 felica and passive communication mode 212 and 424 kbit 11 iso/iec 14443b
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 36 of 125 nxp semiconductors pn512 transmission module 9.2.2.5 txcontrolreg controls the logical behavior of t he antenna driver pins tx1 and tx2. table 54. txcontrolreg register (address 14h); reset value: 80h, 10000000b 7 6 5 4 3 2 1 0 invtx2rf on invtx1rf on invtx2rf off invtx1rf off tx2cw checkrf tx2rf en tx1rf en access rights r/w r/w r/w r/w r/w w r/w r/w table 55. description of txcontrolreg bits bit symbol description 7 invtx2rfon set to logic 1, the output signal at pin tx2 will be inverted, if driver tx2 is enabled. 6 invtx1rfon set to logic 1, the output signal at pin tx1 will be inverted, if driver tx1 is enabled. 5 invtx2rfoff set to logic 1, the output signal at pin tx2 will be inverted, if driver tx2 is disabled. 4 invtx1rfoff set to logic 1, the output signal at pin tx1 will be inverted, if driver tx1 is disabled. 3 tx2cw set to logic 1, the output signal on pin tx2 will deliver continuously the un-modulated 13.56 mhz energy carrier. set to logic 0, tx2cw is enabled to modulate the 13.56 mhz energy carrier. 2 checkrf set to logic 1, tx2rfen and tx1rfen can not be set if an external rf field is detected. only valid wh en using in combination with bit tx2rfen or tx1rfen 1 tx2rfen set to logic 1, the output signal on pin tx2 will deliver the 13.56 mhz energy carrier modulated by the transmission data. 0 tx1rfen set to logic 1, the output signal on pin tx1 will deliver the 13.56 mhz energy carrier modulated by the transmission data.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 37 of 125 nxp semiconductors pn512 transmission module 9.2.2.6 txautoreg controls the settings of the antenna driver. table 56. txautoreg register (addre ss 15h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 autorf off force100 ask auto wakeup 0 caon initialrf on tx2rfaut oen tx1rfauto en access rights r/w r/w r/w rfu r/w r/w r/w r/w table 57. description of txautoreg bits bit symbol description 7 autorfoff set to logic 1, all active antenna drivers are switched off after the last data bit has been transmitted as defined in the nfcip-1. 6 force100ask set to logic 1, force 100ask forces a 100% ask modulation independent of the setting in register modgspreg. 5 autowakeup set to logic 1, the pn512 in soft power-down mode will be started by the rf level detector. 4 - reserved for future use. 3 caon set to logic 1, the collision avoidance is activated and internally the value n is set in accordance to the nfcip-1 standard. 2 initialrfon set to logic 1, the initial rf collision avoidance is performed and the bit initialrfon is cleared automatically, if the rf is switched on. note: the driver, which should be switched on, has to be enabled by bit tx2rfautoen or bit tx1rfautoen. 1 tx2rfautoen set to logic 1, the driver tx2 is switched on after the external rf field is switched off according to the time tadt. if the bits initialrfon and tx2rfautoen are set to logic 1, tx2 is switched on if no external rf field is detected during the time tidt. note: the times tadt and tidt are defined in the nfc ip-1 standard (iso/iec 18092). 0 tx1rfautoen set to logic 1, the driver tx1 is switched on after the external rf field is switched off according to the time tadt. if the bit initialrfon and tx1rfautoen are set to logic 1, tx1 is switched on if no external rf field is detected during the time tidt. note: the times tadt and tidt are defined in the nfc ip-1 standard (iso/iec 18092).
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 38 of 125 nxp semiconductors pn512 transmission module 9.2.2.7 txselreg selects the sources for the analog part. table 58. txselreg register (address 16h); reset value: 10h, 00010000b 7 6 5 4 3 2 1 0 0 0 driversel sigoutsel access rights rfu rfu r/w r/w r/w r/w r/w r/w table 59. description of txselreg bits bit symbol description 7 to 6 - reserved for future use. 5 to 4 driversel selects the input of driver tx1 and tx2. value description 00 tristate note: in soft power down the drivers are only in tristate mode if driversel is set to tristate mode. 01 modulation signal (envelope) from the internal coder 10 modulation signal (envelope) from sigin 11 high note: the high level depends on the setting of invtx1rfon/ invtx1rfoff and invt x2rfon/invtx2rfoff.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 39 of 125 nxp semiconductors pn512 transmission module 3 to 0 sigoutsel selects the input for the sigout pin. value description 0000 tristate 0001 low 0010 high 0011 testbus signal as defined by bit testbusbitsel in register testsel1reg. 0100 modulation signal (envelope) from the internal coder 0101 serial data stream to be transmitted 0110 output signal of the receiver circuit (card modulation signal regenerated and delayed). this signal is used as data output signal for sam interface connection using 3 lines. note: to have a valid signal the pn512 has to be set to the receiving mode by either the transceive or receive command. the bit rxmultiple can be used to keep the pn512 in receiving mode. note: do not use this setting in mifare mode. manchester coding as data collisions will not be transmitted on the sigout line. 0111 serial data stream received. note: do not use this setting in mifare mode. miller coding parameters as the bit length can vary. 1000-1011 felica sam modulation 1000 rx* 1001 tx 1010 demodulator comparator output 1011 rfu note: * to have a valid signal the pn512 has to be set to the receiving mode by either the transceive or receive command. the bit rxmultiple can be used to keep the pn512 in receiving mode. 1100-1111 mifare sam modulation 1100 rx* with rf carrier 1101 tx with rf carrier 1110 rx with rf carrier un-filtered 1111 rx envelope un-filtered note: *to have a valid signal the pn512 has to be set to the receiving mode by either the transceive or receive command. the bit rxmultiple can be used to keep the pn512 in receiving mode. table 59. description of txselreg bits ?continued bit symbol description
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 40 of 125 nxp semiconductors pn512 transmission module 9.2.2.8 rxselreg selects internal re ceiver settings. 9.2.2.9 rxthresholdreg selects thresholds for the bit decoder. table 60. rxselreg register (address 17h); reset value: 84h, 10000100b 7 6 5 4 3 2 1 0 uartsel rxwait access rights r/w r/w r/w r/w r/w r/w r/w r/w table 61. description of rxselreg bits bit symbol description 7 to 6 uartsel selects the input of the contactless uart value description 00 constant low 01 envelope signal at sigin 10 modulation signal from the internal analog part 11 modulation signal from sigin pin. only valid for transfer speeds above 424 kbit 5 to 0 rxwait after data transmission, the activation of the receiver is delayed for rxwait bit-clocks. during this ?frame guard time ? any signal at pin rx is ignored. this parameter is ig nored by the receive command. all other commands (e.g. transceive, autocoll, mfauthent) use this parameter. depending on the mode of the pn512, the counter starts different. in passive communication mode the counter starts with the last modulation pulse of the transmitted data stream. in active communication mode the counter starts immediately after the external rf field is switched on. table 62. rxthresholdreg register (address 18h); reset value: 84h, 10000100b 7 6 5 4 3 2 1 0 minlevel 0 colllevel access rights r/w r/w r/w r/w rfu r/w r/w r/w table 63. description of rxthresholdreg bits bit symbol description 7 to 4 minlevel defines the minimum signal st rength at the decoder input that shall be accepted. if the signal strength is below this level, it is not evaluated. 3 - reserved for future use. 2 to 0 colllevel defines the minimum signal strength at the decoder input that has to be reached by the weaker half-bit of the manchester-coded signal to generate a bit-collision relatively to the amplitude of the stronger half-bit.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 41 of 125 nxp semiconductors pn512 transmission module 9.2.2.10 demodreg defines demodulator settings. table 64. demodreg register (address 19h); reset value: 4dh, 01001101b 7 6 5 4 3 2 1 0 addiq fixiq tprescal even taurcv tausync access rights r/w r/w r/w r/w r/w r/w r/w r/w table 65. description of demodreg bits bit symbol description 7 to 6 addiq defines the use of i and q channel during reception note: fixiq has to be set to logic 0 to enable the following settings. value description 00 select the stronger channel 01 select the stronger and freeze the selected during communication 10 combines the i and q channel 11 reserved 5 fixiq if set to logic 1 and the bits of addiq are set to x0, the reception is fixed to i channel. if set to logic 1 and the bits of addiq are set to x1, the reception is fixed to q channel. note: if sigin/sigout is used as s2c interface fixiq set to 1 and addiq set to x0 is rewired. 4 tprescale ven if set to logic 0 the following formula is used to calculate ftimer of the prescaler: f timer = 13.56 mhz / (2 * tprescaler + 1). if set to logic 1 the following formula is used to calculate ftimer of the prescaler: ftimer = 13.56 mhz / (2 * tprescaler + 2). (default tprescaleven is logic 0) 3 to 2 taurcv changes the time constant of the internal during data reception. note: if set to 00, the pll is frozen during data reception. 1 to 0 tausync changes the time constant of the internal pll during burst.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 42 of 125 nxp semiconductors pn512 transmission module 9.2.2.11 felnfc1reg defines the length of the felica sync bytes and the minimum length of the received packet. table 66. felnfc1reg register (address 1ah); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 felsynclen datalenmin access rights r/w r/w r/w r/w r/w r/w r/w r/w table 67. description of felnfc1reg bits bit symbol description 7 to 6 felsynclen defines the length of the sync bytes. value sync- bytes in hex 00 b2 4d 01 00 b2 4d 10 00 00 b2 4d 11 00 00 00 b2 4d 5 to 0 datalenmin these bits define the minimu m length of the accepted packet length: datalenmin * 4 data packet length this parameter is ignored at 106 kbit if the bit detectsync in register modereg is set to logic 0 . if a received data packet is shorter than the defined datalenmin value, the data packet will be ignored.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 43 of 125 nxp semiconductors pn512 transmission module 9.2.2.12 felnfc2reg defines the maximum length of the received packet. table 68. felnfc2reg register (addr ess1bh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 waitforselected shorttimeslot datalenmax access rights r/w r/w r/w r/w r/w r/w r/w r/w table 69. description of felnfc2reg bits bit symbol description 7 waitforselected set to logic 1, the autocoll command is only terminated automatically when: 1. a valid command has been received after performing a valid select procedure according iso/iec 14443a. 2. a valid command has been received after performing a valid polling procedure according to the felica specification. note: if this bit is set, no ac tive communication is possible. note: setting this bit reduces the host controller interaction in case of a communication to another device in the same rf field during passive communication mode. 6 shorttimeslot defines the time slot le ngth for passive communication mode at 424 kbit. set to logic 1 a short time slot is used (half of the timeslot at 212 kbit). set to logic 0 a long timeslot is used (equal to the timeslot for 212 kbit). 5 to 0 datalenmax these bits define the maximum length of the accepted packet length: datalenmax * 4 data packet length note: if set to logic 0 the maximum data length is 256 bytes. this parameter is ignored at 106 kbit if the bit detectsync in register modereg is set to logic 0. if a received packet is larger than the defined datalenmax value, the packet will be ignored.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 44 of 125 nxp semiconductors pn512 transmission module 9.2.2.13 mifnfcreg defines iso/iec 14443a/mifare/nfc specific settings in target or card operating mode. table 70. mifnfcreg register (address 1ch); reset value: 62h, 01100010b 7 6 5 4 3 2 1 0 sensmiller taumiller mfhalted txwait access rights r/w r/w r/w r/w r/w r/w r/w r/w table 71. description of mifnfcreg bits bit symbol description 7 to 5 sensmiller these bits define th e sensitivity of t he miller decoder. 4 to 3 taumiller these bits define the time constant of the miller decoder. 2 mfhalted set to logic 1, this bit indicates that the pn512 is set to halt mode in card operation mode at 106 kbit. this bit is either set by the host controller or by the internal state machine and indicates that only the code 52h is accepted as a request command. this bit is cleared automatically by a rf reset. 1 to 0 txwait these bits define the additional response time for the target at 106 kbit in passive communication mode and during the autocoll command. per default 7 bits are added to the value of the register bit.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 45 of 125 nxp semiconductors pn512 transmission module 9.2.2.14 manualrcvreg allows manual fine tuning of the internal receiver. remark: for standard applications it is not recommended to change this register settings. table 72. manualrcvreg register (address 1dh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 0fastfilt mf_so delay mf_so parity disable largebw pll manual hpcf hpfc access rights rfu r/w r/w r/w r/w r/w r/w r/w table 73. description of manualrcvreg bits bit symbol description 7 - reserved for future use. 6fastfilt mf_so if this bit is set to logic 1, the intern al filter for the miller-delay circuit is set to fast mode. note: this bit should only set to logic 1, if millerpulses of less than 400 ns pulse length are expected. at 106 kbaud the typical value is 3us. 5 delay mf_so if this bit is set to logic 1, the signal at sigout-pin is delayed, so that in sam mode the signal at sigin mu st be 128/fc faster compared to the iso/iec 14443a, to reach the iso/iec 14443a restrictions on the rf-field. note: this delay shall only be activated for setting bits sigoutsel to (1110b) or (1111b) in register txselreg. 4 parity disable if this bit is set to logi c 1, the generation of the parity bit for transmission and the parity-check for receiving is switched off. the received parity bit is handled like a data bit. 3 largebwpll set to logic 1, the bandwidth of the internal pll used for clock recovery is extended. 2 manualhpcf set to logic 0, the hpcf bits are ignored and the hpcf settings are adapted automatically to the receivi ng mode. set to logic 1, values of hpcf are valid. 1 to 0 hpfc selects the high pass corner frequency (hpcf) of the filter in the internal receiver chain 00 for signals with frequency spectrum down to 106 khz. 01 for signals with frequency spectrum down to 212 khz. 10 for signals with frequency spectrum down to 424 khz. 11 for signals with frequency spectrum down to 848 khz
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 46 of 125 nxp semiconductors pn512 transmission module 9.2.2.15 typebreg 9.2.2.16 serialspeedreg selects the speed of the serial uart interface. table 74. typebreg register (address 1eh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 rxsof req rxeof req 0eofso fwidth notxsof notxeof txegt access rights r/w r/w rfu r/w r/w r/w r/w r/w table 75. description of typebreg bits bit symbol description 7 rxsofreq if this bit is set to logic 1, the sof is required. a datastream starting without sof is ignored. if this bit is cleared, a datastream with and without sof is accepted. the sof will be removed and not written into the fifo. 6 rxeofreq if this bit is set to logic 1, the eof is required. a datastream ending without eof will generate a protocol-e rror. if this bit is cleared, a datastream with and without eof is accepted. the eof will be removed and not written into the fifo. 5 - reserved for future use. 4 eofsofwidth if this bit is set to logic 1 and eofsofadjust bit is logic 0, the sof and eof will have the maximum length defined in iso/iec 14443b. if this bit is cleared and eofsofadjust bit is logic 0, the sof and eof will have the minimum length defined in iso/iec 14443b. if this bit is set to 1 and the eofsofadjust bit is logic 1 will result in sof low = (11etu ? 8 cycles)/fc sof high = (2 etu + 8 cycles)/fc eof low = (11 etu ? 8 cycles)/fc if this bit is set to 0 and the eofsofadjust bit is logic 1 will result in an incorrect system behavior in respect to iso specification. 3 notxsof if this bit is set to logic 1, the generation of th e sof is suppressed. 2 notxeof if this bit is set to logic 1, the generation of th e eof is suppressed. 1 to 0 txegt these bits define the length of the egt. value description 00 0 bit 01 1 bit 10 2 bits 11 3 bits table 76. serialspeedreg register (addre ss 1fh); reset value: ebh, 11101011b 7 6 5 4 3 2 1 0 br_t0 br_t1 access rights r/w r/w r/w r/w r/w r/w r/w r/w
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 47 of 125 nxp semiconductors pn512 transmission module table 77. description of serialspeedreg bits bit symbol description 7 to 5 br_t0 factor br_t0 to adjust t he transfer speed, for description see section 10.3.2 ? selectable uart transfer speeds ? . 3 to 0 br_t1 factor br_t1 to adjust t he transfer speed, for description see section 10.3.2 ? selectable uart transfer speeds ? .
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 48 of 125 nxp semiconductors pn512 transmission module 9.2.3 page 2: configuration 9.2.3.1 pagereg selects the register page. 9.2.3.2 crcresultreg shows the actual msb and lsb values of the crc calculation. note: the crc is split in to two 8-bit register. note: setting the bit msbfirst in modereg register reverses the bit order, the byte order is not changed. table 78. pagereg register (address 20h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 usepageselect 0 0 0 0 0 pageselect access rights r/w rfu rfu rfu rfu rfu r/w r/w table 79. description of pagereg bits bit symbol description 7 usepageselect set to logic 1, the value of p ageselect is used as register address a5 and a4. the lsb-bits of the register address are defined by the address pins or the internal address latch, respectively. set to logic 0, the whole content of the internal address latch defines the register address. the address pins are used as described in section 10.1 ? automatic microcontrolle r interface detection ? . 6 to 2 - reserved for future use. 1 to 0 pageselect the value of pageselect is used only if usepageselect is set to logic 1. in this case, it specifies the register page (which is a5 and a4of the register address). table 80. crcresultreg register (add ress 21h); reset value: ffh, 11 111111b 7 6 5 4 3 2 1 0 crcresultmsb access rightsrrrrrrrr table 81. description of crcresultreg bits bit symbol description 7 to 0 crcresultmsb this register shows the act ual value of the most significant byte of the crcresultreg register. it is valid only if bit crcready in register status1reg is set to logic 1. table 82. crcresultreg register (add ress 22h); reset value: ffh, 11 111111b 7 6 5 4 3 2 1 0 crcresultlsb access rightsrrrrrrrr table 83. description of crcresultreg bits bit symbol description 7 to 0 crcresultlsb this register shows the act ual value of the least significant byte of the crcresult register. it is valid only if bit crcready in register status1reg is set to logic 1.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 49 of 125 nxp semiconductors pn512 transmission module 9.2.3.3 gsnoffreg selects the conductance for the n-driver of the antenna driver pins tx1 and tx2 when the driver is switched off. table 84. gsnoffreg register (address 23h); reset value: 88h, 10001000b 7 6 5 4 3 2 1 0 cwgsnoff modgsnoff access rights r/w r/w r/w r/w r/w r/w r/w r/w table 85. description of gsnoffreg bits bit symbol description 7 to 4 cwgsnoff the value of this register defines the conducta nce of the output n-driver during times of no modulation. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1. note: the value of the register is on ly used if the driver is switched off. otherwise the bit value cw gsnon of register gsnonreg is used. note: this value is used for loadmodulation. 3 to 0 modgsnoff the value of this register defines the conducta nce of the output n-driver for the time of modulation . this may be used to regulate the modulation index. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1. note: the value of the register is on ly used if the driver is switched off. otherwise the bit value modg snon of register gsnonreg is used note: this value is used for loadmodulation.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 50 of 125 nxp semiconductors pn512 transmission module 9.2.3.4 modwidthreg controls the modulati on width settings. 9.2.3.5 txbitphasereg adjust the bitphase at 106 kbit during transmission. table 86. modwidthreg register (address 24h); reset value: 26h, 00100110b 7 6 5 4 3 2 1 0 modwidth access rights r/w r/w r/w r/w r/w r/w r/w r/w table 87. description of modwidthreg bits bit symbol description 7 to 0 modwidth these bits define the width of the miller modulation as initiator in active and passive communication mode as multiples of the carrier frequency (modwidth + 1/fc). the maximum value is half the bit period. acting as a target in passive communication mode at 106 kbit or in card operating mode for iso/ie c 14443a/mifare these bits are used to change the duty cycle of the subcarrier frequency. the resulting number of carrier perio ds are calculated according to the following formulas: low value: #clockslow = (modwidth modulo 8) + 1. high value: #clocksh igh = 16-#clockslow. table 88. txbitphasereg register (addr ess 25h); reset value: 87h, 10000111b 7 6 5 4 3 2 1 0 rcvclkchange txbitphase access rights r/w r/w r/w r/w r/w r/w r/w r/w table 89. description of txbitphasereg bits bit symbol description 7 rcvclkchange set to logic 1, the demodulator?s clock is derived by the external rf field. 6 to 0 txbitphase these bits are representin g the number of carrier frequency clock cycles, which are added to the wa iting period befor e transmitting data in all communication modes. txbitphase is used to adjust the tx bit synchronization during pass ive nfcip-1 communication mode at 106 kbit and in iso/iec 14443a/mifare card mode.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 51 of 125 nxp semiconductors pn512 transmission module 9.2.3.6 rfcfgreg configures the receiver gain and rf level detector sensitivity. table 90. rfcfgreg register (address 26h); reset value: 48h, 01001000b 7 6 5 4 3 2 1 0 rflevelamp rxgain rflevel access rights r/w r/w r/w r/w r/w r/w r/w r/w table 91. description of rfcfgreg bits bit symbol description 7 rflevelamp set to logic 1, this bit activates the rf level detectors? amplifier. 6 to 4 rxgain this register defines the receivers signal voltage gain factor: value description 000 18 db 001 23 db 010 18 db 011 23 db 100 33 db 101 38 db 110 43 db 111 48 db 3 to 0 rflevel defines the sensitivity of the rf level detector, for description see section 12.3 ? rf level detector ? .
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 52 of 125 nxp semiconductors pn512 transmission module 9.2.3.7 gsnonreg selects the conductance for the n-driver of the antenna driver pins tx1 and tx2 when the driver is switched on. 9.2.3.8 cwgspreg defines the conductance of the p-dr iver during times of no modulation table 92. gsnonreg register (address 27h); reset value: 88h, 10001000b 7 6 5 4 3 2 1 0 cwgsnon modgsnon access rights r/w r/w r/w r/w r/w r/w r/w r/w table 93. description of gsnonreg bits bit symbol description 7 to 4 cwgsnon the value of this register defines the conducta nce of the output n-driver during times of no modulati on. this may be used to regulate the output power and subsequent ly current consumption and operating distance. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1. note: this value is only used if t he driver tx1 or tx2 are switched on. otherwise the value of the bits cw gsnoff of register gsnoffreg is used. 3 to 0 modgsnon the value of this register defines the conducta nce of the output n-driver for the time of modulation. this may be used to regulate the modulation index. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1. note: this value is only used if the driver tx1 or tx2 are switched on. otherwise the value of the bits m odsnoff of register gsnoffreg is used. table 94. cwgspreg register (address 28h); reset value: 20h, 00100000b 7 6 5 4 3 2 1 0 00 cwgsp access rights rfu rfu r/w r/w r/w r/w r/w r/w table 95. description of cwgspreg bits bit symbol description 7 to 6 - reserved for future use. 5 to 0 cwgsp the value of this register defines the conducta nce of the output p-driver. this may be used to regulate the output power and subsequently current consumpt ion and operating distance. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 53 of 125 nxp semiconductors pn512 transmission module 9.2.3.9 modgspreg defines the driver p-output conductance during modulation. [1] if force100ask is set to logic 1, the value of modgsp has no effect. 9.2.3.10 tmode register , tprescaler register defines settings for the timer. note: the prescaler value is sp lit into two 8-bit registers table 96. modgspreg register (address 29h); reset value: 20h, 00100000b 7 6 5 4 3 2 1 0 00 modgsp access rights rfu rfu r/w r/w r/w r/w r/w r/w table 97. description of modgspreg bits bit symbol description 7 to 6 - reserved for future use. 5 to 0 modgsp [1] the value of this register defines the conductance of the output p-driver for the time of modulation. this may be used to regulate the modulation index. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1. table 98. tmodereg register (address 2ah); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 tauto tgated tautorestart tprescaler_hi access rights r/w r/w r/w r/w r/w r/w r/w r/w table 99. description of tmodereg bits bit symbol description 7 tauto set to logic 1, the timer starts automatically at the end of the transmission in all communication modes at all speeds or when bit initialrfon is set to logic 1 and the rf field is switched on. in mode mifare and iso14443-b 106k bit/s the timer stops after the 5th bit (1 startbit, 4 databits) if the bit rxmultiple in the register rxmodereg is not set. in all other modes, the timer stops after the 4th bit if the bit rxmultiple the register rxmodereg is not set. if rxmultiple is set to logic 1, the timer never stops. in this case the timer can be stopped by setting the bit tst opnow in register controlreg to 1. set to logic 0 indicates, that the timer is not influenced by the protocol.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 54 of 125 nxp semiconductors pn512 transmission module 6 to 5 tgated the internal timer is running in gated mode. note: in the gated mode, the bit trunning is 1 when the timer is enabled by the register bits. this bit does not influence the gating signal. value description 00 non gated mode 01 gated by sigin 10 gated by aux1 11 gated by a3 4 tautorestart set to logic 1, the timer automatically restart its count-down from treloadvalue, instead of counting down to zero. set to logic 0 the timer decrements to zero and the bit timerirq is set to logic 1. 3 to 0 tprescaler_hi defines higher 4 bits for tprescaler. the following formula is used to calculate f timer if tprescaleven bit in demot reg is set to logic 0: f timer = 13.56 mhz/(2*tprescaler+1). where tprescaler = [tprescaler_hi :tprescaler_lo] (t prescaler value on 12 bits) (default tprescaleven is logic 0) the following formula is used to calculate ftimer if tprescaleven bit in demot reg is set to logic 1: f timer = 13.56 mhz/(2*tprescaler+2). for detailed description see section 15 ? timer unit ? . table 100. tprescalerreg register (address 2bh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 tprescaler_lo access rights r/w r/w r/w r/w r/w r/w r/w r/w table 101. description of tprescalerreg bits bit symbol description 7 to 0 tprescaler_lo defines lower 8 bits for tprescaler. the following formula is used to calculate f timer if tprescaleven bit in demot reg is set to logic 0: f timer = 13.56 mhz/(2*tprescaler+1). where tprescaler = [tprescaler_hi: tprescaler_lo] (tprescaler value on 12 bits) the following formula is used to calculate ftimer if tprescaleven bit in demot reg is set to logic 1: f timer = 13.56 mhz/(2*tprescaler+2). where tprescaler = [tprescaler_hi: tprescaler_lo] (tprescaler value on 12 bits) for detailed description see section 15 ? timer unit ? . table 99. description of tmodereg bits ?continued bit symbol description
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 55 of 125 nxp semiconductors pn512 transmission module 9.2.3.11 treloadreg describes the 16-bit long timer reload value. note: the reload value is sp lit into two 8-bit registers. table 102. treloadreg (higher bits) register (address 2ch); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 treloadval_hi access rights r/w r/w r/w r/w r/w r/w r/w r/w table 103. description of th e higher treloadreg bits bit symbol description 7 to 0 treloadval_hi defines the higher 8 bits for the treloadreg. with a start event the timer loads the treloadval. changing this register affects the timer only at the next start event. table 104. treloadreg (lower bits) register (address 2dh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 treloadval_lo access rights r/w r/w r/w r/w r/w r/w r/w r/w table 105. description of lower treloadreg bits bit symbol description 7 to 0 treloadval_lo defines the lower 8 bits for the treloadreg. with a start event the timer loads the treloadval. changing this register affects the timer only at the next start event.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 56 of 125 nxp semiconductors pn512 transmission module 9.2.3.12 tcountervalreg contains the current value of the timer. note: the counter value is sp lit into two 8-bit register. 9.2.4 page 3: test 9.2.4.1 pagereg selects the register page. table 106. tcountervalreg (higher bits) regi ster (address 2eh); reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 tcounterval_hi access rights rrrrrrrr table 107. description of the higher tcountervalreg bits bit symbol description 7 to 0 tcounterval_hi current value of the timer, higher 8 bits. table 108. tcountervalreg (lower bits) register (address 2fh); reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 tcounterval_lo access rights rrrrrrrr table 109. description of lower tcountervalreg bits bit symbol description 7 to 0 tcounterval_lo current value of the timer, lower 8 bits. table 110. pagereg register (address 30h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 usepageselect 0 0 0 0 0 pageselect access rights r/w rfu rfu rfu rfu rfu r/w r/w
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 57 of 125 nxp semiconductors pn512 transmission module table 111. description of pagereg bits bit symbol description 7 usepageselect set to logic 1, the value of pageselect is used as register address a5 and a4. the lsb-bits of the register address are defined by the address pins or the internal address latch, respectively. set to logic 0, the whole content of the internal address latch defines the register address. the address pins are used as described in section 10.1 ? automatic microcontroller interface detection ? . 6 to 2 - reserved for future use. 1 to 0 pageselect the value of pageselect is used only if usepageselect is set to logic 1. in this case, it specifies the register page (which is a5 and a4 of the register address).
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 58 of 125 nxp semiconductors pn512 transmission module 9.2.4.2 testsel1reg general test signal configuration. 9.2.4.3 testsel2reg general test signal config uration and prbs control table 112. testsel1reg register (address 31h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 - - samclocksel samclkd1 tstbusbitsel access rights r/w r/w r/w r/w r/w r/w r/w r/w table 113. description of testsel1reg bits bit symbol description 7 to 6 - reserved for future use. 5 to 4 samclocksel defines the source for the 13.56 mhz sam clock value description 00 gnd- sam clock switched off 01 clock derived by the internal oscillator 10 internal uart clock 11 clock derived by the rf field 3 samclkd1 set to logic 1, the sam clock is delivered to d1. note: only possible if the 8bit parallel interface is not used. 2 to 0 tstbusbitsel select the testbus bit from the testbus to be propagated to sigout. table 114. testsel2reg register (address 32h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 tstbusflip prbs9 prbs15 testbussel access rights r/w r/w r/w r/w r/w r/w r/w r/w table 115. description of testsel2reg bits bit symbol description 7 tstbusflip if set to logic 1, the testbus is mapped to the parallel port by the following order: d4, d3, d2, d6, d5, d0, d1. see section 20 ? testsignals ? . 6 prbs9 starts and enables the prbs9 sequence according itu-to150. note: all relevant registers to transmit data have to be configured before entering prbs9 mode. note: the data transmission of the defined sequence is started by the send command. 5 prbs15 starts and enables the prbs15 sequence according itu-to150. note: all relevant registers to transmit data have to be configured before entering prbs15 mode. note: the data transmission of the defined sequence is started by the send command. 4 to 0 testbussel selects the testbus. see section 20 ? testsignals ?
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 59 of 125 nxp semiconductors pn512 transmission module 9.2.4.4 testpinenreg enables the pin output driver on the 8-bit parallel bus. 9.2.4.5 testpinvaluereg defines the values for the 7-bit parallel port when it is used as i/o. table 116. testpinenreg register (address 33h); reset value: 80h, 10000000b 7 6 5 4 3 2 1 0 rs232lineen testpinen access rights r/w r/w r/w r/w r/w r/w r/w r/w table 117. description of testpinenreg bits bit symbol description 7 rs232lineen set to logic 0, the lines mx and dtrq for the serial uart are disabled. 6 to 0 testpinen enables the pin output dr iver on the 8-bit parallel interface. example: setting bit 0 to 1 enables d0 setting bit 5 to 1 enables d5 note: only valid if one of serial interfaces is used. if the spi interface is used only d0 to d4 can be used. if the serial uart interface is used and rs232lineen is set to logic 1 only d0 to d4 can be used. table 118. testpinvaluereg register (address 34h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 useio testpinvalue access rights r/w r/w r/w r/w r/w r/w r/w r/w table 119. description of testpinvaluereg bits bit symbol description 7 useio set to logic 1, this bit enables th e i/o functionality for the 7-bit parallel port in case one of the serial inte rfaces is used. the input/output behavior is defined by testpinen in register testpinenreg. the value for the output behavior is defin ed in the bits testpinval. note: if samclkd1 is set to logi c 1, d1 can not be used as i/o. 6 to 0 testpinvalue defines the value of the 7-bi t parallel port, when it is used as i/o. each output has to be enabled by the testpinen bits in register testpinenreg. note: reading the register indicates the actual status of the pins d6 - d0 if useio is set to logic 1. if useio is set to logic 0, the value of the register testpinvaluereg is read back.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 60 of 125 nxp semiconductors pn512 transmission module 9.2.4.6 testbusreg shows the status of the internal testbus. 9.2.4.7 autotestreg controls the digital selftest. 9.2.4.8 versionreg shows the version. table 120. testbusreg re gister (address 35h) ; reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 testbus access rightsrrrrrrrr table 121. description of testbusreg bits bit symbol description 7 to 0 testbus shows the status of the intern al testbus. the testbus is selected by the register testsel2reg. see section 20 ? testsignals ? . table 122. autotestreg register (address 36h); reset value: 40h, 01000000b 7 6 5 4 3 2 1 0 0amprcv0eofso fadjust selftest access rights rft r/w rfu rfu r/w r/w r/w r/w table 123. description of bits bit symbol description 7 - reserved for production tests. 6 amprcv if set to logic 1, the internal signal processing in the receiver chain is performed non-linear. this increases the operating distance in communication modes at 106 kbit. note: due to the non linearity the effect of the bits minlevel and colllevel in the register rxthreshholdreg are as well non linear. 5 - reserved for future use. 4 eofsofadjust if set to logic 0 and the eofsofwidth is set to 1 will result in the maximum length of sof and eof according to iso/iec14443b if set to logic 0 and the eofsofwidth is set to 0 will result in the minimum length of sof and eof according to iso/iec14443b if this bit is set to 1 and the eofsofwidth bit is logic 1 will result in sof low = (11 etu ? 8 cycles)/fc sof high = (2 etu + 8 cycles)/fc eof low = (11 etu ? 8 cycles)/fc 3 to 0 selftest enables the digital self test. the selftest can be started by the selftest command in the command register. the selftest is enabled by 1001. note: for default operation the selftest has to be disabled by 0000.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 61 of 125 nxp semiconductors pn512 transmission module table 124. versionreg register (add ress 37h); reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 version access rightsrrrrrrrr table 125. description of versionreg bits bit symbol description 7 to 0 version 80h indicates pn512 version v1.0. 82h indicates pn512 version v1.2.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 62 of 125 nxp semiconductors pn512 transmission module 9.2.4.9 analogtestreg controls the pins aux1 and aux2 table 126. analogtestreg register (add ress 38h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 analogselaux1 analogselaux2 access rights r/w r/w r/w r/w r/w r/w r/w r/w table 127. description of analogtestreg bits bit symbol description 7 to 4 3to 0 analogselaux1 analogselaux2 controls the aux pin. note: all test signals are described in section 20 ? testsignals ? . value description 0000 tristate 0001 output of testdac1 (aux1), output of testdac2 (aux2) note: current output. the use of 1 k pull-down resistor on aux is recommended. 0010 testsignal corr1 note: current output. the use of 1 k pull-down resistor on aux is recommended. 0011 testsignal corr2 note: current output. the use of 1 k pull-down resistor on aux is recommended. 0100 testsignal minlevel note: current output. the use of 1 k pull-down resistor on aux is recommended. 0101 testsignal adc channel i note: current output. the use of 1 k pull-down resistor on aux is recommended. 0110 testsignal adc channel q note: current output. the use of 1 k pull-down resistor on aux is recommended. 0111 testsignal adc channel i combined with q note: current output. the use of 1 k pull-down resistor on aux is recommended. 1000 testsignal for production test note: current output. the use of 1 k pull-down resistor on aux is recommended. 1001 sam clock (13.56 mhz) 1010 high 1011 low 1100 txactive at 106 kbit: high during startbit, data bit, parity and crc. at 212 and 424 kbit: high during preamble, sync, data and crc. 1101 rxactive at 106 kbit: high during databit, parity and crc. at 212 and 424 kbit: high during data and crc. 1110 subcarrier detected 106 kbit: not applicable 212 and 424 kbit: high during last part of preamble, sync data and crc 1111 testbus-bit as defined by the tstbusbitsel in register testsel1reg.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 63 of 125 nxp semiconductors pn512 transmission module 9.2.4.10 testdac1reg defines the testvalues for testdac1. 9.2.4.11 testdac2reg defines the testvalue for testdac2. 9.2.4.12 testadcreg shows the actual value of adc i and q channel. table 128. testdac1reg register (address 39h); reset value: xxh, 00xxxxxxb 7 6 5 4 3 2 1 0 0 0 testdac1 access rights rft rfu r/w r/w r/w r/w r/w r/w table 129. description of testdac1reg bits bit symbol description 7 - reserved for production tests. 6 - reserved for future use. 5 to 0 testdac1 defines the testvalue for testdac1. the output of the dac1 can be switched to aux1 by setting analogselaux1 to 0001 in register analogtestreg. table 130. testdac2reg register (address 3ah); reset value: xxh, 00xxxxxxb 7 6 5 4 3 2 1 0 0 0 testdac2 access rights rfu rfu r/w r/w r/w r/w r/w r/w table 131. description oftestdac2reg bits bit symbol description 7 to 6 - reserved for future use. 5 to 0 testdac2 defines the testvalue for testdac2. the output of the dac2 can be switched to aux2 by setting analogselaux2 to 0001 in register analogtestreg. table 132. testadcreg register (addre ss 3bh); reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 adc_i adc_q access rights table 133. description of testadcreg bits bit symbol description 7 to 4 adc_i shows the actual value of adc i channel. 3 to 0 adc_q shows the actual value of adc q channel.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 64 of 125 nxp semiconductors pn512 transmission module 9.2.4.13 rftreg 10. digital interfaces 10.1 automatic microcontroll er interface detection the pn512 supports direct interfacing of hosts using spi, i 2 c-bus or serial uart interfaces. the pn512 resets its interface and checks the current host interface type automatically after performing a power-on or hard reset. the pn512 identifies the host interface by sensing the logic levels on the cont rol pins after the reset phase. this is done using a combination of fixed pin connections. table 140 shows the different connection configurations. table 134. rftreg register (address 3ch); reset value: ffh, 11111111b 7 6 5 4 3 2 1 0 11111111 access rights rft rft rft rft rft rft rft rft table 135. description of rftreg bits bit symbol description 7 to 0 - reserved for production tests. table 136. rftreg register (address 3dh, 3fh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 00000000 access rights rft rft rft rft rft rft rft rft table 137. description of rftreg bits bit symbol description 7 to 0 - reserved for production tests. table 138. rftreg register (address 3eh); reset value: 03h, 00000011b 7 6 5 4 3 2 1 0 00000011 access rights rft rft rft rft rft rft rft rft table 139. description of rftreg bits bit symbol description 7 to 0 - reserved for production tests.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 65 of 125 nxp semiconductors pn512 transmission module [1] only available in hvqfn 40. [2] not available in hvqfn 32. table 140. connection protocol for detecting different interface types pin interface type uart (input) spi (output) i 2 c-bus (i/o) sda rx nss sda i 2 c001 ea01ea d7 tx miso scl d6 mx mosi adr_0 d5 dtrq sck adr_1 d4 - - adr_2 d3 - - adr_3 d2 - - adr_4 d1 - - adr_5 table 141. connection scheme for detecting the different interface types pn512 parallel interface type serial interface types separated read/write strobe common read/write strobe pin dedicated address bus multiplexed address bus dedicated address bus multiplexed address bus uart spi i 2 c ale 1 ale 1 as rx nss sda a5 [1] a5 0 a5 0 000 a4 [1] a4 0 a4 0 000 a3 [2] a3 0 a3 0 000 a2 [2] a2 1 a2 1 000 a1a1 1 a1 1 001 a0a0 1 a0 0 01ea nrd [2] nrd nrd nds nds 1 1 1 nwr [2] nwr nwr rd/nwr rd/nwr 1 1 1 ncs [2] ncs ncs ncs ncs ncs ncs ncs d7 d7 d7 d7 d7 tx miso scl d6 d6 d6 d6 d6 mx mosi adr_0 d5 d5 ad5 d5 ad5 dtrq sck adr_1 d4 d4 ad4 d4 ad4 --adr_2 d3 d3 ad3 d3 ad3 --adr_3 d2 d2 ad2 d2 ad2 --adr_4 d1 d1 ad1 d1 ad1 --adr_5 d0 d0 ad0 d0 ad0 --adr_6 remark: overview on the pin behavior pin behavior input output in/out
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 66 of 125 nxp semiconductors pn512 transmission module 10.2 serial peripheral interface a serial peripheral interface (spi compatible) is supported to enable high-speed communication to the host. the interface can handle data speeds up to 10 mbit/s. when communicating with a host, the pn512 acts as a slave, receiving data from the external host for register settings, sending and re ceiving data relevant for rf interface communication. an interface compatible with spi enables high-speed serial communication between the pn512 and a microcontroller. the implemented interface is in accordance with the spi standard. the timing specification is given in section 25.1 on page 107 . the pn512 acts as a slave during spi commu nication. the spi clock signal sck must be generated by the master. data communicatio n from the master to the slave uses the mosi line. the miso line is used to send data from the pn512 to the master. data bytes on both mosi and miso lines ar e sent with the msb first. data on both mosi and miso lines must be stable on the rising edge of the clock and can be changed on the falling edge. data is provided by the pn512 on the falling cloc k edge and is stable during the rising clock edge. 10.2.1 spi read data reading data using spi requires the byte order shown in table 142 to be used. it is possible to read out up to n-data bytes. the first byte sent defines both the mode and the address. [1] x = do not care. remark: the msb must be sent first. 10.2.2 spi write data to write data to the pn512 using spi requires the byte order shown in table 143 . it is possible to write up to n data bytes by only sending one address byte. fig 12. spi connection to host 001aan22 0 pn512 sck sck mosi mosi miso miso nss nss table 142. mosi and miso byte order line byte 0 byte 1 byte 2 to byte n byte n + 1 mosi address 0 address 1 address 2 ... address n 00 miso x [1] data 0 data 1 ... data n ? 1data n
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 67 of 125 nxp semiconductors pn512 transmission module the first send byte defines both the mode and the address byte. [1] x = do not care. remark: the msb must be sent first. 10.2.3 spi address byte the address byte has to meet the following format. the msb of the first byte defines the mode used. to read data from the pn512 the msb is set to logic 1. to write data to the pn512 the msb must be set to logic 0. bits 6 to 1 define the address and the lsb is set to logic 0. 10.3 uart interface 10.3.1 connection to a host remark: signals dtrq and mx can be disabled by clearing testpinenreg register?s rs232lineen bit. 10.3.2 selectable uart transfer speeds the internal uart interface is compat ible with an rs232 serial interface. the default transfer speed is 9.6 kbd. to change the transfer speed, the host controller must write a value for the new transfer sp eed to the serialspeedreg register. bits br_t0[2:0] and br_t1[4:0] define the factors for setting the transfer speed in the serialspeedreg register. the br_t0[2:0] and br_t1[4:0] settings are described in ta b l e 9 . examples of different transfer speeds and the relevant register settings are given in ta b l e 1 0 . table 143. mosi and miso byte order line byte 0 byte 1 byte 2 to byte n byte n + 1 mosi address 0 data 0 data 1 ... data n ? 1data n miso x [1] x [1] x [1] ... x [1] x [1] table 144. address byte 0 register; address mosi 7 (msb) 6 5 4 3 2 1 0 (lsb) 1 = read 0 = write address 0 fig 13. uart connection to microcontrollers 001aan22 1 pn512 rx rx tx tx dtrq dtrq mx mx
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 68 of 125 nxp semiconductors pn512 transmission module [1] the resulting transfer speed error is less than 1.5 % for all described transfer speeds. the selectable transfer speeds shown in table 10 are calculated according to the following equations: if br_t0[2:0] = 0: (1) if br_t0[2:0] > 0: (2) remark: transfer speeds above 1228.8 kbd are not supported. 10.3.3 uart framing table 145. br_t0 and br_t1 settings br_tn bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 br_t0 factor11248163264 br_t1 range 1 to 32 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 table 146. selectable uart transfer speeds transfer speed (kbd) serialspeedreg value transfer speed accuracy (%) [1] decimal hexadecimal 7.2 250 fah ? 0.25 9.6 235 ebh 0.32 14.4 218 dah ? 0.25 19.2 203 cbh 0.32 38.4 171 abh 0.32 57.6 154 9ah ? 0.25 115.2 122 7ah ? 0.25 128 116 74h ? 0.06 230.4 90 5ah ? 0.25 460.8 58 3ah ? 0.25 921.6 28 1ch 1.45 1228.8 21 15h 0.32 transfer speed 27.12 10 6 br _ t0 1 + () ------------------------------- - = transfer speed 27.12 10 6 br _ t1 33 + () 2 br _ t0 1 ? () ---------------------------------- - ----------------------------------- ?? ?? ?? ?? ?? = table 147. uart framing bit length value start 1-bit 0 data 8 bits data stop 1-bit 1
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 69 of 125 nxp semiconductors pn512 transmission module remark: the lsb for data and address bytes must be sent first. no parity bit is used during transmission. read data: to read data using the uart interface, the flow shown in ta b l e 1 4 8 must be used. the first byte sent defines both the mode and the address. write data: to write data to the pn512 using the uart interface, the structure shown in table 149 must be used. the first byte sent defines both the mode and the address. table 148. read data byte order pin byte 0 byte 1 rx (pin 24) address - tx (pin 31) - data 0 (1) reserved. fig 14. uart read data timing diagram 001aak58 8 sa address rx tx mx dtrq a0 a1 a2 a3 a4 a5 (1) so sa d0 d1 d2 d3 d4 d5 d6 d7 so data r/w table 149. write data byte order pin byte 0 byte 1 rx (pin 24) address 0 data 0 tx (pin 31) - address 0
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 70 of 125 nxp semiconductors pn512 transmission module remark: the data byte can be sent directly after the address byte on pin rx. address byte: the address byte has to meet the following format: (1) reserved. fig 15. uart write data timing diagram 001aak58 9 sa address rx tx mx dtrq a0 a1 a2 a3 a4 a5 (1) so sa d0 d1 d2 d3 d4 d5 d6 d7 so sa a0 a1 a2 a3 a4 a5 (1) so data address r/w r/w
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 71 of 125 nxp semiconductors pn512 transmission module the msb of the first byte sets the mode used . to read data from the pn512, the msb is set to logic 1. to write data to the pn512 the msb is set to logic 0. bit 6 is reserved for future use, and bits 5 to 0 define the address; see table 150 . 10.4 i 2 c bus interface an i 2 c-bus (inter-ic) interface is supported to enable a low-cost, low pin count serial bus interface to the host. the i 2 c-bus interface is implemented according to nxp semiconductors? i 2 c-bus interface specification, rev. 2.1, january 2000 . the interface can only act in slave mode. ther efore the pn512 does not implement clock generation or access arbitration. the pn512 can act either as a slave receiver or slave transmitter in standard mode, fast mode and high-speed mode. sda is a bidirectional line connected to a posit ive supply voltage using a current source or a pull-up resistor. both sda and scl lines are set high when data is not transmitted. the pn512 has a 3-state output stage to perform the wired-and function. data on the i 2 c-bus can be transferred at data rates of up to 100 kbd in standard mode, up to 400 kbd in fast mode or up to 3.4 mbit/s in high-speed mode. if the i 2 c-bus interface is selected , spike suppression is activated on lines scl and sda as defined in the i 2 c-bus interface specification. see table 170 on page 108 for timing requirements. table 150. address byte 0 register; address mosi 7 (msb) 6 5 4 3 2 1 0 (lsb) 1 = read 0 = write reserved address fig 16. i 2 c-bus interface 001aan22 2 pn512 sda scl i2c ea adr_[5:0] pull-up network configuration wiring pull-up network microcontroller
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 72 of 125 nxp semiconductors pn512 transmission module 10.4.1 data validity data on the sda line must be stable during the high clock period. the high or low state of the data line must only change when the clock signal on scl is low. 10.4.2 start and stop conditions to manage the data transfer on the i 2 c-bus, unique start (s) and stop (p) conditions are defined. ? a start condition is defined with a high-to-low transition on the sda line while scl is high. ? a stop condition is defined with a low-to-high transition on the sda line while scl is high. the i 2 c-bus master always generates the start and stop conditions. the bus is busy after the start condition. the bus is free aga in a certain time after the stop condition. the bus stays busy if a repeated start (sr) is generated instead of a stop condition. the start (s) and repeated start (sr) conditions are functionally identical. therefore, s is used as a generic term to represent both the start (s) and repeated start (sr) conditions. 10.4.3 byte format each byte must be followed by an acknowledge bit. data is transferred with the msb first; see figure 21 . the number of transmitted bytes during one data transfer is unrestricted but must meet the read /write cycle format. fig 17. bit transfer on the i 2 c-bus mbc62 1 data line stable; data valid change of data allowed sda scl fig 18. start and stop conditions mbc62 2 sda scl p stop condition sda scl s start condition
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 73 of 125 nxp semiconductors pn512 transmission module 10.4.4 acknowledge an acknowledge must be sent at the end of one data byte. the acknowledge-related clock pulse is generated by the master. the transmitte r of data, either master or slave, releases the sda line (high) during the acknowledge clock pulse. the receiver pulls down the sda line during the acknowledge clock pulse so that it remains stable low during the high period of this clock pulse. the master can then generate either a stop (p) condition to stop the transfer or a repeated start (sr) condition to start a new transfer. a master-receiver indicates the end of data to the slave-transmitter by not generating an acknowledge on the last byte that was clocke d out by the slave. the slave-transmitter releases the data line to allow the master to generate a stop (p) or repeated start (sr) condition. fig 19. acknowledge on the i 2 c-bus mbc60 2 s start condition 9 8 2 1 clock pulse for acknowledgement not acknowledge acknowledge data output by transmitter data output by receiver scl from master fig 20. data transfer on the i 2 c-bus msc60 8 sr or p sda sr p scl stop or repeated start condition s or sr start or repeated start condition 1 2 3 - 8 9 ack 9 ack 78 12 msb acknowledgement signal from slave byte complete, interrupt within slave clock line held low while interrupts are serviced acknowledgement signal from receiver
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 74 of 125 nxp semiconductors pn512 transmission module 10.4.5 7-bit addressing during the i 2 c-bus address procedure, the first byte after the start condition is used to determine which slave will be selected by the master. several address numbers are reserved. during device configuration, the designer must ensure that collisions with these reserv ed addresses cannot occur. check the i 2 c-bus specification for a complete list of reserved addresses. the i 2 c-bus address specification is dependent on the definition of pin ea. immediately after releasing pin nrstpd or after a powe r-on reset, the device defines the i 2 c-bus address according to pin ea. if pin ea is set low, the upper 4 bits of the device bus address are reserved by nxp semiconductors and set to 0101b for all pn512 devices. the remaining 3 bits (adr_0, adr_1, adr_2) of the slave address can be freely configured by the customer to prevent collisions with other i 2 c-bus devices. if pin ea is set high, adr_0 to adr_5 can be completely specified at the external pins according to table 140 on page 65 . adr_6 is always set to logic 0. in both modes, the external address coding is latched immediately after releasing the reset condition. further changes at the used pins are not taken into consideration. depending on the external wiring, the i 2 c-bus address pins can be used for test signal outputs. 10.4.6 register write access to write data from the host controller using the i 2 c-bus to a specific register in the pn512 the following frame format must be used. ? the first byte of a frame indicates the device address according to the i 2 c-bus rules. ? the second byte indicates the register address followed by up to n-data bytes. in one frame all data bytes are written to t he same register address. this enables fast fifo buffer access. the read/write (r/w ) bit is set to logic 0. fig 21. first byte following the start procedure 001aak59 1 slave address bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w msb lsb
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 75 of 125 nxp semiconductors pn512 transmission module 10.4.7 register read access to read out data from a specific register address in the pn512, the host controller must use the following procedure: ? firstly, a write access to th e specific register address must be performed as indicated in the frame that follows ? the first byte of a frame indicates the device address according to the i 2 c-bus rules ? the second byte indicates the register address. no data bytes are added ? the read/write bit is 0 after the write access, read a ccess can start. the host sends the device address of the pn512. in response, the pn512 sends the cont ent of the read access register. in one frame all data bytes can be read from the same register address. this enables fast fifo buffer access or register polling. the read/write (r/w) bit is set to logic 1. fig 22. register read and write access 001aak59 2 sa00 i 2 c-bus slave address [a7:a0] joiner register address [a5:a0] write cycle 0 (w) a data [7:0] [0:n] [0:n] [0:n] a p sa00 i 2 c-bus slave address [a7:a0] joiner register address [a5:a0] read cycle optional, if the previous access was on the same register address 0 (w) a p p s s start condition p stop condition a acknowledge a not acknowledge w write cycle r read cycle a i 2 c-bus slave address [a7:a0] sent by master sent by slave data [7:0] 1 (r) a data [7:0] a
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 76 of 125 nxp semiconductors pn512 transmission module 10.4.8 high-speed mode in high-speed mode (hs mode), the device can tran sfer information at data rates of up to 3.4 mbit/s, while remaining fully downward-co mpatible with fast or standard mode (f/s mode) for bidirectional communication in a mixed-speed bus system. 10.4.9 high-speed transfer to achieve data rates of up to 3.4 mbit/s the following improvements have been made to i 2 c-bus operation. ? the inputs of the device in hs mode incorpor ate spike suppression, a schmitt trigger on the sda and scl inputs and different timing constants when compared to f/s mode ? the output buffers of the device in hs mode incorpor ate slope contro l of the falling edges of the sda and scl signals with different fall times compared to f/s mode 10.4.10 serial data transfer format in hs mode the hs mode serial data transfer format meets the standard mode i 2 c-bus specification. hs mode can only start after all of the followin g conditions (all of wh ich are in f/s mode): 1. start condition (s) 2. 8-bit master code (00001xxxb) 3. not-acknowledge bit (a ) when hs mode starts, the active master sends a repeated start condition (sr) followed by a 7-bit slave address with a r/w bit address and receives an acknowledge bit (a) from the selected pn512. data transfer continues in hs mode after th e next repeated start (sr), only switching back to f/s mode after a stop condition (p). to reduce the overhead of the master code, a master links a number of hs mode transfers, separated by repeated start conditions (sr). fig 23. i 2 c-bus hs mode protocol switch f/s mode hs mode (current-source for scl high enabled) f/s mode 001aak74 9 a a a/a data (n-bytes + a) s r/w master code sr slave address hs mode continues sr slave address p
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 77 of 125 nxp semiconductors pn512 transmission module fig 24. i 2 c-bus hs mode protocol frame msc61 8 8-bit master code 0000 1xxx a t h t 1 s f/s mode hs mode if p then f/s mode if sr (dotted lines) then hs mode 16789 6789 1 1 2 to 5 2 to 5 2 to 5 67 89 sda high scl high sda high scl high t h t fs sr sr p n + (8-bit data + a/a) 7-bit sla r/w a = master current source pull-up = resistor pull-up
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 78 of 125 nxp semiconductors pn512 transmission module 10.4.11 switching between f/s mode and hs mode after reset and initializat ion, the pn512 is in fast mode (which is in effect f/s mode as fast mode is downward-c ompatible with standard mode). the connected pn512 recognizes the ?s 00001xxx a? sequence and s witches its internal circuitry from the fast mode setting to the hs mode setting. the following actions are taken: 1. adapt the sda and scl input filters accord ing to the spike suppression requirement in hs mode. 2. adapt the slope control of the sda output stages. it is possible for system configurations that do not have other i 2 c-bus devices involved in the communication to switch to hs mode permanently. this is implemented by setting status2reg register?s i 2 cforcehs bit to logic 1. in permanent hs mode, the master code is not required to be sent. this is not defin ed in the specification and must only be used when no other devices are connected on the bus. in addition, spikes on the i 2 c-bus lines must be avoided because of the reduced spike suppression. 10.4.12 pn512 at lower speed modes pn512 is fully downward-compatible and can be connected to an f/s mode i 2 c-bus system. the device stays in f/s mode and communicates at f/s mode speeds because a master code is not transmitted in this configuration. 11. 8-bit parallel interface the pn512 supports two different types of 8-bit parallel interfaces, intel and motorola compatible modes. 11.1 overview of supported host controller interfaces the pn512 supports direct interfacing to various -controllers. the following table shows the parallel interface types supported by the pn512. table 151. supported interface types supported interface types bus separated address and data bus multiplexed address and data bus separated read and write strobes (intel compatible) control nrd, nwr, ncs nrd, nwr, ncs, ale address a0 ? a3 [..a5*] ad0 ? ad7 data d0 ? d7 ad0 ? ad7 multiplexed read and write strobe (motorola compatible) control r/nw, nds, ncs r/nw, nds, ncs, as address a0 ? a3 [..a5*] ad0 ? ad7 data d0 ? d7 ad0 ? ad7
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 79 of 125 nxp semiconductors pn512 transmission module 11.2 separated read/write strobe for timing requirements refer to section 25.2 ? 8-bit parallel interface timing ? . 11.3 common read/write strobe for timing requirements refer to section 25.2 ? 8-bit parallel interface timing ? fig 25. connection to host controller with separated read/write strobes 001aan22 3 pn512 ncs a0...a3[a5*] d0...d7 a0 a1 a2 a3 a4* a5* address bus (a0...a3[a5*]) ale nrd nwr address decoder data bus (d0...d7) high not data strobe (nrd) not write (nwr) address bus remark: *depending on the package type. multiplexed address/data ad0...ad7) pn512 ncs d0...d7 ale nrd nwr address decoder low low high high high low address latch enable (ale) not read strobe (nrd) not write (nwr) non multiplexed address fig 26. connection to host controller with common read/write strobes 001aan22 4 pn512 ncs a0...a3[a5*] d0...d7 a0 a1 a2 a3 a4* a5* address bus (a0...a3[a5*]) ale nrd nwr address decoder data bus (d0...d7) high not data strobe (nds) read not write (rd/nwr) address bus remark: *depending on the package type. multiplexed address/data ad0...ad7) pn512 ncs d0...d7 ale nrd nwr address decoder low low high high low low address strobe (as) not data strobe (nds) read not write (rd/nwr) non multiplexed address
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 80 of 125 nxp semiconductors pn512 transmission module 12. analog interface and contactless uart 12.1 general the integrated contactless uart supports the external host online with framing and error checking of the protocol requirements up to 848 kbd. an external circuit can be connected to the communication interface pins mfin and mfout to modulate and demodulate the data. the contactless uart handles the protocol requirements for the communication protocols in cooperation with the host. protoc ol handling generates bit and byte-oriented framing. in addition, it handles error detection such as parity and crc, based on the various supported contactless communication protocols. remark: the size and tuning of the antenna and the power supply voltage have an important impact on the achievable operating distance. 12.2 tx driver the signal on pins tx1 and tx2 is the 13.56 mhz energy carrier modulated by an envelope signal. it can be used to drive an antenna di rectly using a few passive components for matching and filtering; see section 15 on page 92 . the signal on pins tx1 and tx2 can be configured using the txcontrolreg register; see section 9.2.2.5 on page 36 . the modulation index can be set by adjusting the impedance of the drivers. the impedance of the p-driver can be conf igured using registers cwgspreg and modgspreg. the impedance of the n-driver can be configured using the gsnreg register. the modulation index also depends on the antenna design and tuning. the txmodereg and txselreg registers control the data rate and framing during transmission and the antenna driver setting to support the different requirements at the different modes and transfer speeds. [1] x = do not care. table 152. register and bit settings controlling the signal on pin tx1 bit tx1rfen bit force 100ask bit invtx1rfon bit invtx1rfoff envelope pin tx1 gspmos gsnmos remarks 0x [1] x [1] x [1] x [1] x [1] x [1] x [1] not specified if rf is switched off 100 x [1] 0 rf pmod nmod 100 % ask: pin tx1 pulled to logic 0, independent of the invtx1rfoff bit 1rfpcwncw 01 x [1] 0 rf pmod nmod 1rfpcwncw 11 x [1] 0 0 pmod nmod 1rf_npcwncw
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 81 of 125 nxp semiconductors pn512 transmission module [1] x = do not care. the following abbreviations have been used in table 152 and table 153 : ? rf: 13.56 mhz clock derived from 27.12 mhz quartz crystal oscillator divided by 2 ? rf_n: inverted 13.56 mhz clock ? gspmos: conductance, configuration of the pmos array ? gsnmos: conductance, configuration of the nmos array ? pcw: pmos conductance value for continuous wave defined by the cwgspreg register ? pmod: pmos conductance value for modula tion defined by the modgspreg register ? ncw: nmos conductance value for continuous wave defined by the gsnreg register?s cwgsn[3:0] bits ? nmod: nmos conductance value for modulation defined by the gsnreg register?s modgsn[3:0] bits ? x = do not care. remark: if only one driver is switched on, t he values for cwgspreg, modgspreg and gsnreg registers are used for both drivers. 12.3 rf level detector the rf level detector is inte grated to fulfill nf cip1 protocol requ irements (e.g. rf collision avoidance). fu rthermore the rf leve l detector can be used to wake up the pn512 and to generate an interrupt. table 153. register and bit settings controlling the signal on pin tx2 bit tx1rfen bit force 100ask bit tx2cw bit invtx2rfon bit invtx2rfoff envelope pin tx2 gspmos gsnmos remarks 0x [1] x [1] x [1] x [1] x [1] x [1] x [1] x [1] not specified if rf is switched off 1000 x [1] 0 rf pmod nmod - 1rfpcwncw 1x [1] 0 rf_n pmod nmod 1rf_npcwncw 10 x [1] x [1] rf pcw ncw conductance always cw for the tx2cw bit 1x [1] x [1] rf_n pcw ncw 100 x [1] 0 0 pmod nmod 100 % ask: pin tx2 pulled to logic 0 (independent of the invtx2rfon/inv tx2rfoff bits) 1rfpcwncw 1x [1] 0 0 pmod nmod 1rf_npcwncw 10 x [1] x [1] rf pcw ncw 1x [1] x [1] rf_n pcw ncw
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 82 of 125 nxp semiconductors pn512 transmission module the sensitivity of the rf level detector is adju stable in a 4-bit range using the bits rflevel in register rfcfgreg. the s ensitivity itself depends on the antenna configuration and tuning. possible sensitivity levels at the rx pin are listed in the table 153 . to increase the sensitivity of the rf level de tector an amplifier can be activated by setting the bit rflevelamp in register rfcfgreg to 1. remark: during soft power-down mode the rf leve l detector amplifie r is automatically switched off to ensure that the power consumption is less than 10 aat3v. remark: with typical antennas lower sensitivit y levels can provoke misleading results because of intrinsic noise in the environment. note: it is recommended to use the bit rflevelamp only with higher rf level settings. 12.4 data mode detector the data mode detector gives th e possibility to detect receiv ed signals according to the iso/iec 14443a/mifare, felica or nfcip-1 schemes at the standard transfer speeds for 106 kbit, 212 kbit and 424 kbit in order to prepare the internal receiver in a fast and convenient way for further data processing. the data mode detector can only be activated by the autocoll command. the mode detector resets, when no extern al rf field is detected by the rf level detector. the data mode detector could be switched off during the autocoll command by setting bit modedetoff in register modereg to 1. table 154. setting of the bits rflevel in regi ster rfcfgreg (rflevel amplifier deactivated) v~rx [vpp] rflevel ~2 1111 ~1.4 1110 ~0.99 1101 ~0.69 1100 ~0.49 1011 ~0.35 1010 ~0.24 1001 ~0.17 1000 ~0.12 0111 ~0.083 0110 ~0.058 0101 ~0.041 0100 ~0.029 0011 ~0.020 0010 ~0.014 0001 ~0.010 0000
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 83 of 125 nxp semiconductors pn512 transmission module fig 27. data mode detector 001aan22 5 host interfaces receiver i/q demodulator registers registersetting for the detected mode data mode detector rx pn512 nfc @ 106 kbit/s nfc @ 212 kbit/s nfc @ 424 kbit/s
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 84 of 125 nxp semiconductors pn512 transmission module 12.5 serial data switch two main blocks are implemented in the pn512. the digital block comprises the state machines, encoder/decoder logic. the analog block comprises the modulator and antenna drivers, the receiver and amplifiers . the interface between these two blocks can be configured in the way, that the interfacin g signals may be routed to the pins sigin and sigout. sigin is capable of processing di gital nfc signals on transfer speeds above 424 kbit. the sigout pin can provide a digital signal that can be used with an additional external circuit to generate transfer spee ds above 424 kbit (including 106, 212 and 424 kbit). furthermore sigout and si gin can be used to enable the s 2 c interface in the card sam mode to emulate a card functionality with the pn512 and a secure ic. a secure ic can be the smart mx smart card controller ic. this topology allows the analog block of the pn512 to be connected to the digital block of another device. the serial signal switch is controll ed by the txselreg and rxselreg registers. figure 28 shows the serial data switch for tx1 and tx2. 12.6 s 2 c interface support the s 2 c provides the possibility to directly connect a secure ic to the pn512 in order act as a contactless smart card ic via the pn512. the interfacing signals can be routed to the pins sigin and sigout. sigin can receiv e either a digital felica or digitized iso/iec 14443a signal sent by the secure ic. the sigout pin can provide a digital signal and a clock to communicate to the secure ic. a secure ic can be the smart card ic provided by nxp semiconductors. the pn512 has an extr a supply pin (svdd and pvss as gr ound line) for the sigin and sigout pads. figure 30 outlines possible ways of communica tions via the pn512 to the secure ic. fig 28. serial data switch for tx1 and tx2 001aak5 93 internal coder invert if invmod = 1 driversel[1:0] 00 01 10 11 3-state to driver tx1 and tx2 0 = impedance = modulated 1 = impedance = cw 1 invert if polmfin = 0 mfin envelope
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 85 of 125 nxp semiconductors pn512 transmission module configured in the secure access mode the ho st controller can directly communicate to the secure ic via sigin/sigout. in this mode the pn512 generates the rf clock and performs the communication on the sigout line. to enable the secure access module mode the clock has to be derived by the in ternal oscillator of the pn512, see bits samclocksel in regist er testsel1reg. configured in contactless card mode the secure ic can act as contactless smart card ic via the pn512. in this mode the signal on the sigout line is provided by the external rf field of the external reader/writer. to enable the contactless card mode the clock derived by the external rf field has to be used. the configuration of the s 2 c interface differs for the felica and mifare scheme as outlined in the following chapters. fig 29. communication flows using the s 2 c interface 001aan22 6 contactless uart serial signal switch fifo and state machine spi, i 2 c, serial uart host controller p n512 secure core ic sigout sigin 2. contactless card mode 1. secure access module (sam) mode
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 86 of 125 nxp semiconductors pn512 transmission module 12.6.1 signal shape for felica s 2 c interface support the felica secure ic is connected to the pn512 via the pi ns sigout and sigin. the signal at sigout contains the informat ion of the 13.56 mhz cl ock and the digitized demodulated signal. the clock and the demodulated signal is combined by using the logical function exclusive or. to ensure that this signal is free of spikes, the demodulated signal is digitally filtered first. the time delay for that digital filtering is in the range of one bit length. the demodulated signal changes only at a po sitive edge of the clock. the register txselreg controls the setting at sigout. the answer of the felica sam is transferred fr om sigin directly to the antenna driver. the modulation is done according to the register settings of the antenna drivers. the clock is switched to aux1 or aux2 (see analogselaux). note: a high signal on aux1 and aux2 has the same level as avdd. a high signal at sigout has the same level as svdd. alternatively it is poss ible to use pin d0 as clock output if a serial interface is used. t he high level at d0 is the same as pvdd. note: the signal on the antenna is shown in principle only. in rea lity the waveform is sinusoidal. fig 30. signal shape for sigout in felica card sam mode fig 31. signal shape for sigin in sam mode 001aan22 7 clock signal on sigin signal on antenna 001aan22 8 clock demodulated signal signal on sigout
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 87 of 125 nxp semiconductors pn512 transmission module 12.6.2 waveform shape for iso/iec 14443a and mifare s 2 c support the secure ic, e.g. the smart mx is connected to the pn512 via the pins sigout and sigin. the waveform shape at sigout is a digita l 13.56 mhz miller coded signal with levels between pvss and pvdd derived out of the external 13 .56 mhz carrier si gnal in case of the contactless card mode or internally generated in terms of secure access mode. the register txselreg controls the setting at sigout. note: the clock settings fo r the secure access mode and the contactless card mode differ, refer to the description of the bits samclocksel in register testsel1reg. the signal at sigin is a digital manchester c oded signal according to the requirements of the iso/iec 14443a with the subcarrier frequency of 847.5 khz generated by the secure ic. fig 32. signal shape for sigout in mifare card sam mode fig 33. signal shape for sigin in mifare card sam mode 001aan22 9 1 0 bit value rf signal on antenna signal on sigout 01001 001aan230 0 1 0 00 11 bit value signal on antenna signal on sigin
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 88 of 125 nxp semiconductors pn512 transmission module 12.7 hardware support for felica and nfc polling 12.7.1 polling sequence functionality for initiator 1. timer: the pn512 has a timer, which can be programmed in a way that it generates an interrupt at the end of each timeslot, or if required an interrupt is generated at the end of the last timeslot. 2. the receiver can be configured in a way to receive continuously. in this mode it can receive any number of packets. the receiv er is ready to receive the next packet directly after the last packet has been rece ived. this mode is active by setting the bit rxmultiple in register rxmodereg to 1 and has to be stopped by software. 3. the internal uart adds one byte to the end of every received packet, before it is transferred into the fifo-buffer. this byte indicates if the received byte packet is correct (see register errreg). the first byte of each packet contains the length byte of the packet. 4. the length of one packet is 18 or 20 bytes (+ 1 byte error-info). the fifo has a length of 64 bytes. this means three packets can be stored in the fifo at the same time. if more than three packets are expe cted, the host controller has to empty the fifo, before the fifo is filled completely. in case of a fifo -overflow data is lost (see bit bufferovfl in register errorreg). 12.7.2 polling sequence functionality for target 1. the host controller has to configure the pn512 with t he correct polling response parameters for the polling command. 2. to activate the automatic polling in targ et mode, the autocoll command has to be activated. 3. the pn512 receives the polling command send out by an initiator and answers with the polling response. the timeslot is select ed automatically (the timeslot itself is randomly generated , but in the range 0 to tsn, which is defined by the polling command). the pn512 compares the system c ode, stored in byte 17 and 18 of the config command with the system code received by the polling command of an initiator. if the system code is equal, the pn512 answers according to the configured polling response. th e system code ff (hex) acts as a wildcard for the system code bytes, i.e. a target of a system code 12 34 (hex) answers to th e polling command with one of the following system codes 1234 (hex ), 12ff (hex), ff34 (hex) or ffff (hex). if the system code does not match no answer is sent back by the pn512. if a valid command is received by the pn 512, which is not a polling command, no answer is sent back and the command auto coll is stopped. the received packet is stored in the fifo.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 89 of 125 nxp semiconductors pn512 transmission module 12.7.3 additional hardware support for felica and nfc additionally to the polling sequ ence support for the felica mo de, the pn512 supports the check of the len-byte. the received len-byte in accordance to the registers felnfc1reg and felnfc2reg: datalenmin in register felnfc1reg defines the minimum length of the accepted packet length. this register is six bit long. ea ch bit represents a length of four bytes. datalenmax in register felnfc2reg defines the maximum length of the accepted package. this register is six bit long. each bit represents a length of four bytes. if set to logic 1 this limit is ignored. if the length is not in the supposed range, the packet is not transferred to the fifo and receiving is kept active. example 1: ? datalenmin = 4 ? the length shall be greater or equal 16. ? datalenmax = 5 ? the length shall be smaller than 20. valid area: 16, 17, 18, 19 example 2: ? datalenmin = 9 ? the length shall be greater or equal 36. ? datalenmax = 0 ? the length shall be smaller than 256. valid area: 36 to 255 12.7.4 crc coprocessor the following crc coprocessor parameters can be configured: ? the crc preset value can be either 000 0h, 6363h, a671h or ffffh depending on the modereg register?s crcpreset[1:0] bits setting ? the crc polynomial for the 16-bit crc is fixed to x 16 +x 12 +x 5 +1 ? the crcresultreg register indicates the result of the crc calculat ion. this register is split into two 8-bit registers representing the higher and lower bytes. ? the modereg register?s msbfirst bit indica tes that data will be loaded with the msb first. table 155. crc coprocessor parameters parameter value crc register length 16-bit crc crc algorithm algorithm according to iso/iec 14443 a and itu-t crc preset value 0000h, 6363h, a671h or ffffh depending on the setting of the modereg register?s crcpreset[1:0] bits
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 90 of 125 nxp semiconductors pn512 transmission module 13. fifo buffer an 8 64 bit fifo buffer is used in the pn512. it buffers the input and output data stream between the host and the pn512?s internal st ate machine. this ma kes it possible to manage data streams up to 64 bytes long without the need to take timing constraints into account. 13.1 accessing the fifo buffer the fifo buffer input and output data bus is connected to the fifodatareg register. writing to this register stores one byte in the fifo buffer and increments the internal fifo buffer write pointer. reading fr om this register shows the fifo buffer contents stored in the fifo buffer read pointer and decrements the fifo buffer read pointer. the distance between the write and read pointer can be obtained by reading the fifolevelreg register. when the microcontroller starts a command, the pn512 can, while the command is in progress, access the fifo buffer according to that command. only one fifo buffer has been implemented which can be used for input and output. the microcontroller must ensure that there are not any unintentional fifo buffer accesses. 13.2 controlling the fifo buffer the fifo buffer pointers can be reset by se tting fifolevelreg register?s flushbuffer bit to logic 1. consequently, the fifolevel[6:0] bits are all set to logic 0 and the errorreg register?s bufferovfl bit is cleared. the by tes stored in the fifo buffer are no longer accessible allowing the fi fo buffer to be filled with anothe r 64 bytes. 13.3 fifo buffer status information the host can get the following fi fo buffer status information: ? number of bytes stored in the fifo buff er: fifolevelreg register?s fifolevel[6:0] ? fifo buffer almost full warning: status1reg register?s hialert bit ? fifo buffer almost empty warning: status1reg register?s loalert bit ? fifo buffer overflow warning: errorreg re gister?s bufferovfl bit. the bufferovfl bit can only be cleared by setting the fifo levelreg register?s flushbuffer bit. the pn512 can generate an interrupt signal when: ? comienreg register?s loalertien bit is set to logic 1. it activates pin irq when status1reg register?s loalert bit changes to logic 1. ? comienreg register?s hialertien bit is set to logic 1. it activates pin irq when status1reg register?s hialert bit changes to logic 1. if the maximum number of waterlevel bytes (as set in the waterlevelreg register) or less are stored in the fifo buffer, the hialert bit is set to logic 1. it is generated according to equation 3 : (3) hialert 64 fifolength ? () waterlevel =
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 91 of 125 nxp semiconductors pn512 transmission module if the number of waterlevel bytes (as set in the waterlevelreg register) or less are stored in the fifo buffer, the loalert bit is set to logic 1. it is generated according to equation 4 : (4) 14. interrupt request system the pn512 indicates certain events by settin g the status1reg register?s irq bit and, if activated, by pin irq. the signal on pin irq can be used to interrupt the host using its interrupt handling ca pabilities. this allows the implemen tation of efficient host software. 14.1 interrupt sources overview table 156 shows the available interrupt bits, the corresponding source and the condition for its activation. the comirqreg register?s time rirq interrupt bit indicates an interrupt set by the timer unit which is set when the timer decrements from 1 to 0. the comirqreg register?s txirq bit indicates th at the transmitter has finished. if the state changes from sending data to transmitting the end of the frame pattern, the transmitter unit automatically sets th e interrupt bit. the crc copr ocessor sets the divirqreg register?s crcirq bit after processing all the fifo buffer data which is indicated by crcready bit = 1. the comirqreg register?s rxirq bit indicates an interrupt when the end of the received data is detected. the comirqreg register?s idleirq bit is set if a command finishes and the command[3:0] value in the commandr eg register changes to idle (see table 157 on page 97 ). the comirqreg register?s hialertirq bit is set to logic 1 when the status1reg register?s hialert bit is set to logic 1 which means that the fifo buffer has reached the level indicated by the waterlevel[5:0] bits. the comirqreg register?s loalertirq bit is set to logic 1 when the status1reg register?s loalert bit is set to logic 1 which means that the fifo buffer has reached the level indicated by the waterlevel[5:0] bits. the comirqreg register?s errirq bit indicates an error detected by the contactless uart during send or receive. this is indicated when any bit is set to logic 1 in register errorreg. loalert fifolength waterlevel = table 156. interrupt sources interrupt flag interrupt source trigger action timerirq timer unit the timer counts from 1 to 0 txirq transmitter a transmitted data stream ends crcirq crc coprocessor all data from the fifo buffer has been processed rxirq receiver a received data stream ends idleirq comirqreg register command execution finishes hialertirq fifo buffer the fifo buffer is almost full loalertirq fifo buffer the fifo buffer is almost empty errirq contactless uart an error is detected
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 92 of 125 nxp semiconductors pn512 transmission module 15. timer unit a timer unit is implemented in the pn512. t he external host controller may use this timer to manage timing relevant tasks. the timer unit may be used in one of the following configurations: ? time-out counter ? watch-dog counter ? stop watch ? programmable one-shot ? periodical trigger the timer unit can be used to measure the time interval between two events or to indicate that a specific event occurred after a specific time. the timer can be triggered by events which will be explained in the following, but the timer itself does not influence any internal event (e.g. a time-out during data reception does not influence the reception process automatically). furthermore, several timer rela ted bits are set and these bits can be used to generate an interrupt. timer the timer has an input clock of 13.56 mhz (derived from the 27.12 mhz quartz). the timer consists of two stages: 1 prescaler and 1 counter. the prescaler is a 12-bit counter. the reload value for tprescaler can be defined between 0 and 4095 in register tmodereg and tprescalerreg. the reload value for the counter is defined by 16 bits in a range of 0 to 65535 in the register treloadreg. the current value of the timer is indi cated by the register tcountervalreg. if the counter reaches 0 an inte rrupt will be generated automatically indicated by setting the timerirq bit in the register commonirqreg. if enabled, this event can be indicated on the irq line. the bit timerirq can be set and reset by the host controller. depending on the configuration the timer will stop at 0 or restart with the value from register treloadreg. the status of the timer is indicated by bit trunning in register status1reg. the timer can be manually started by tstartnow in register controlreg or manually stopped by tstopnow in register controlreg. furthermore the timer can be activated auto matically by setting the bit tauto in the register tmodereg to fu lfill dedicated protocol r equirements automatically. the time delay of a timer stage is the reload value +1. the definition of total time is: t = ((tp rescaler*2+1)*treload+1)/13.56mhz or if tprescaleeven bit is set: t = ((tp rescaler*2+2)*trel oad+1)/13.56mhz maximum time: tprescaler = 4095,treloadval = 65535 => (2*4095 +2)*65536/13.56 mhz = 39.59 s example:
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 93 of 125 nxp semiconductors pn512 transmission module to indicate 25 us it is required to coun t 339 clock cycles. this means the value for tprescaler has to be set to tprescaler = 169.t he timer has now an input clock of 25 us. the timer can count up to 65535 timeslots of each 25 s.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 94 of 125 nxp semiconductors pn512 transmission module 16. power reduction modes 16.1 hard power-down hard power-down is enabled wh en pin nrstpd is low. this tu rns off all internal current sinks including the oscillator. all digital input buffers are separated from the input pins and clamped internally (except pin nrstpd). the out put pins are frozen at either a high or low level. 16.2 soft power-down mode soft power-down mode is entered immediately after the commandreg register?s powerdown bit is set to logic 1. all internal current sinks are switched off, including the oscillator buffer. however, the digital input bu ffers are not separated from the input pins and keep their functionality. the digita l output pins do not change their state. during soft power-down, all re gister values, the fifo buffer content and the configuration keep their current contents. after setting the powerdown bit to logic 0, it takes 1024 clocks until the soft power-down mode is exited indicated by the powerdown bi t. setting it to logic 0 does not immediately clear it. it is cleared automatically by the pn512 when soft power-down mode is exited. remark: if the internal oscillator is us ed, you must take into acco unt that it is supplied by pin avdd and it will take a certain time (t osc ) until the oscillator is stable and the clock cycles can be detected by the internal logic. it is recommended for the serial uart, to first send the value 55h to the pn51 2. the oscillator must be stab le for further access to the registers. to ensure this, perform a read acce ss to address 0 until the pn512 answers to the last read command with the register cont ent of address 0. this indicates that the pn512 is ready. 16.3 transmitter power-down mode the transmitter power-down mode switches of f the internal antenna drivers thereby, turning off the rf field. transmitter power-do wn mode is entered by setting either the txcontrolreg register?s tx1rfen bit or tx2rfen bit to logic 0.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 95 of 125 nxp semiconductors pn512 transmission module 17. oscillator circuitry the clock applied to the pn512 provides a time basis for the synchronous system?s encoder and decoder. the stabilit y of the clock frequen cy, therefore, is an important factor for correct operation. to obtain optimum perf ormance, clock jitter must be reduced as much as possible. this is best achieved using the internal oscillator buffer with the recommended circuitry. if an external clock source is used, the clock signal must be applied to pin oscin. in this case, special care must be ta ken with the clock duty cycle and clock jitter and the clock quality must be verified. 18. reset and oscill ator start-up time 18.1 reset timing requirements the reset signal is filtered by a hysteresis ci rcuit and a spike filter before it enters the digital circuit. the spike filter rejects signals shorter than 10 ns. in order to perform a reset, the signal must be low for at least 100 ns. 18.2 oscillator start-up time if the pn512 has been set to a power-down mode or is powered by a v ddx supply, the start-up time for the pn512 depend s on the oscillator used and is shown in figure 35 . the time (t startup ) is the start-up time of the crystal o scillator circuit. the crystal oscillator start-up time is defined by the crystal. the time (t d ) is the internal delay time of the pn512 when the clock signal is stable before the pn512 can be addressed. the delay time is calculated by: (5) the time (t osc ) is the sum of t d and t startup . fig 34. quartz crystal connection 001aan2 31 pn512 27.12 mhz oscout oscin t d 1024 27 s ------------- - 37.74 s ==
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 96 of 125 nxp semiconductors pn512 transmission module 19. pn512 command set the pn512 operation is determined by a state machine capable of performing a set of commands. a command is executed by writing a command code (see table 157 ) to the commandreg register. arguments and/or data necessary to process a command are exchanged via the fifo buffer. 19.1 general description the pn512 operation is determined by a state machine capable of performing a set of commands. a command is executed by writing a command code (see table 157 ) to the commandreg register. arguments and/or data necessary to process a command are exchanged via the fifo buffer. 19.2 general behavior ? each command that needs a data bit stream (or data byte stream) as an input immediately processes any data in the fifo buffer. an exception to this rule is the transceive command. using this comma nd, transmission is started with the bitframingreg register?s startsend bit. ? each command that needs a certain number of arguments, starts processing only when it has received the correct number of arguments from the fifo buffer. ? the fifo buffer is not automatically cleared when commands start. this makes it possible to write command arguments and/or the data bytes to the fifo buffer and then start the command. ? each command can be interrupted by the host writing a new command code to the commandreg register, for example, the idle command. fig 35. oscillator start-up time 001aak5 96 t startup t d t osc t device activation oscillator clock stable clock ready
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 97 of 125 nxp semiconductors pn512 transmission module 19.3 pn512 command overview 19.3.1 pn512 command descriptions 19.3.1.1 idle places the pn512 in idle mode. the idle command also terminates itself. 19.3.1.2 mem transfers 25 bytes from the fifo buffer to the internal buffer. to read out the 25 bytes from the internal buffer the mem command must be started with an empty fifo buffer. in this case, the 25 bytes ar e transferred from the internal buffer to the fifo. during a hard power-down (using pin nrstpd), the 25 bytes in the internal buffer remain unchanged and are only lost if the power supply is removed from the pn512. this command automatically terminates wh en finished and the idle command becomes active. 19.3.1.3 generate randomid this command generates a 10-byte random number which is initially stored in the internal buffer. this then overwrites the 10 bytes in the internal 25-byte buffer. this command automatically terminates when finished and the pn512 returns to idle mode. 19.3.1.4 calccrc the fifo buffer content is transferred to t he crc coprocessor and the crc calculation is started. the calculation result is stor ed in the crcresultreg register. the crc calculation is not limited to a dedicated number of bytes. the calculation is not stopped when the fifo buffer is empty during the data stream. the next byte written to the fifo buffer is added to the calculation. table 157. command overview command command code action idle 0000 no action, cancels current command execution mem 0001 stores 25 bytes into the internal buffer generate randomid 0010 generates a 10-byte random id number calccrc 0011 activates the crc coproc essor or performs a self test transmit 0100 transmits data from the fifo buffer nocmdchange 0111 no command change, can be used to modify the commandreg register bits without affecting the command, for example, the powerdown bit receive 1000 activates the receiver circuits transceive 1100 transmits data from fifo buffer to antenna and automatically activates the receiver after transmission - 1101 reserved for future use mfauthent 1110 performs the mifare standard authentication as a reader softreset 1111 resets the pn512
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 98 of 125 nxp semiconductors pn512 transmission module the crc preset value is controlled by the modereg register?s crcpreset[1:0] bits. the value is loaded in to the crc coprocessor when the command starts. this command must be terminated by wr iting a command to the commandreg register, such as, the idle command. if the autotestreg register?s selftest[3:0] bits are set correctly, the pn512 enters self test mode. starting the calccrc command initiates a digital se lf test. the result of the self test is written to the fifo buffer. 19.3.1.5 transmit the fifo buffer content is immediately transm itted after starting this command. before transmitting the fifo buffer content, all relevant registers must be set for data transmission. this command automatically terminates when the fifo buffer is empty. it can be terminated by another command written to the commandreg register. 19.3.1.6 nocmdchange this command does not influence any running command in the commandreg register. it can be used to manipulate any bit except the commandreg register command[3:0] bits, for example, the rcvoff bit or the powerdown bit. 19.3.1.7 receive the pn512 activates the receiver path and waits for a data stream to be received. the correct settings must be chosen before starting this command. this command automatically terminates when the data stream ends. this is indicated either by the end of frame pattern or by th e length byte depending on the selected frame type and speed. remark: if the rxmodereg register?s rxmultiple bit is set to logic 1, the receive command will not automatically terminate. it must be termin ated by star ting another command in the commandreg register. 19.3.1.8 transceive this command continuously repeats the transmissi on of data from the fifo buffer and the reception of data from the rf field. the first action is transmit and after transmission the command is changed to receive a data stream. each transmit process must be started by se tting the bitframingreg register?s startsend bit to logic 1. this command must be cleared by writing any command to the commandreg register. remark: if the rxmodereg register?s rxmultiple bit is set to logic 1, the transceive command never leaves the receive state because this state cannot be cancelled automatically. 19.3.1.9 mfauthent this command manages mifare authenticati on to enable a secure communication to any mifare mini, mifare 1k and mifare 4k card. the following data is written to the fifo buffer before the command can be activated:
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 99 of 125 nxp semiconductors pn512 transmission module ? authentication command code (60h, 61h) ? block address ? sector key byte 0 ? sector key byte 1 ? sector key byte 2 ? sector key byte 3 ? sector key byte 4 ? sector key byte 5 ? card serial number byte 0 ? card serial number byte 1 ? card serial number byte 2 ? card serial number byte 3 in total 12 bytes are written to the fifo. remark: when the mfauthent command is active all access to the fifo buffer is blocked. however, if there is access to the fi fo buffer, the errorreg register?s wrerr bit is set. this command automatically terminates when the mifare card is authenticated and the status2reg register?s mfcrypto1on bit is set to logic 1. this command does not terminate automatically if the card does not answer, so the timer must be initialized to automatic mode. in this case, in addition to the idleirq bit, the timerirq bit can be used as the termination cr iteria. during authentication processing, the rxirq bit and txirq bit are blocked. the crypto 1on bit is only valid after termination of the mfauthent command, either after processing the protocol or writing idle to the commandreg register. if an error occurs during authe ntication, the errorr eg register?s protocolerr bit is set to logic 1 and the status2reg register?s crypto1on bit is set to logic 0. 19.3.1.10 softreset this command performs a reset of the device. the configuration data of the internal buffer remains unchanged. all registers are set to t he reset values. this command automatically terminates when finished. remark: the serialspeedreg register is reset and therefore the serial data rate is set to 9.6 kbd.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 100 of 125 nxp semiconductors pn512 transmission module 20. testsignals 20.1 selftest the pn512 has the capability to perform a digita l selftest. to start the selftest the following procedure has to be performed: 1. perform a soft reset. 2. clear the internal buffer by writing 25 by tes of 00h and perform the config command. 3. enable the selftest by writing the value 09h to the register autotestreg. 4. write 00h to the fifo. 5. start the selftest with the calccrc command. 6. the selftest will be performed. 7. when the selftest is finished, the fifo contains the following bytes: correct answer for versionreg equal to 82h: 0x00, 0xeb, 0x66, 0xba, 0x57, 0xbf, 0x23, 0x95, 0xd0, 0xe3, 0x0d, 0x3d, 0x27, 0x89, 0x5c, 0xde, 0x9d, 0x3b, 0xa7, 0x00, 0x21, 0x5b, 0x89, 0x82, 0x51, 0x3a, 0xeb, 0x02, 0x0c, 0xa5, 0x00, 0x49, 0x7c, 0x84, 0x4d, 0xb3, 0xcc, 0xd2, 0x1b, 0x81, 0x5d, 0x48, 0x76, 0xd5, 0x71, 0x61, 0x21, 0xa9, 0x86, 0x96, 0x83, 0x38, 0xcf, 0x9d, 0x5b, 0x6d, 0xdc, 0x15, 0xba, 0x3e, 0x7d, 0x95, 0x3b, 0x2f 20.2 testbus the testbus is implemented for production te st purposes. the following configuration can be used to improve the design of a system using the pn512. the testbus allows to route internal signals to the digital interface. the testbus signals are selected by accessing testbussel in register testsel2reg. table 158. testsignal routing (testsel2reg = 07h) pins d6 d5 d4 d3 d2 d1 d0 testsignal sdata scoll svalid sover rcv_reset rfon, filtered envelope table 159. description of testsignals pins testsignal description d6 sdata shows the actual received data stream. d5 scoll shows if in the actual bit a collision has been detected (106 kbit only) d4 svalid shows if sdata and scoll are valid d3 sover shows that the receiver has detected a stop condition (iso/iec 14443a/ mifare mode only). d2 rcv_reset shows if the receiver is reset d1 rfon, filtered shows the value of the internal rf level detector d0 envelope shows the output of the internal coder table 160. testsignal routing (testsel2reg = 0dh) pins d6 d5 d4 d3 d2 d1 d0 testsignal clkstable clk27/8 clk27r f/8 clkrf13rf/4 clk27 clk27rf clk13rf
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 101 of 125 nxp semiconductors pn512 transmission module 20.3 testsignals at pin aux each signal can be switched to pin aux1 or aux2 by setting selaux1 or selaux2 in the register analogtestreg. table 161. description of testsignals pins testsignal description d6 clkstable shows if the oscillator delivers a stable signal. d5 clk27/8 shows the output signal of the oscillator divided by 8 d4 clk27rf/8 shows the clk27rf signal divided by 8 d3 clkrf13/4 shows the clk13rf divided by 4. d2 clk27 shows the output signal of the oscillator d1 clk27rf shows the rf clock multiplied by 2. d0 clk13rf shows the rf clock of 13.56 mhz table 162. testsignal routing (testsel2reg = 19h) pins d6 d5 d4 d3 d2 d1 d0 testsignal - trunning - - - - - table 163. description of testsignals pins testsignal description d6 - - d5 trunning trunning stops 1 cloc kcycle after timerirq is raised d4 - - d3 - - d2 - - d1 - - d0 - - table 164. testsignals description selaux description for aux1 / aux2 0000 tristate 0001 dac: register testdac 1/2 0010 dac: testsignal corr1 0011 dac: testsignal corr2 0100 dac: testsignal minlevel 0101 dac: adc_i 0110 dac: adc_q 0111 dac: testsignal adc_i combined with adc_q 1000 testsignal for production test 1001 sam clock 1010 high 1011 low 1100 txactive 1101 rxactive 1110 subcarrier detected 1111 tstbusbit
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 102 of 125 nxp semiconductors pn512 transmission module note: the dac has a current output, it is recommended to use a 1 k pull-down resistance at pins aux1/aux2. 20.4 prbs enables the prbs9 or prbs15 sequence according to itu-to150. to start the transmission of the defined datastream the command send has to be activated. the preamble/sync byte/start bit/parity bit are generated automatically depending on the selected mode. note: all relevant register to transmit data have to be configured before entering prbs mode according itu-to150. 21. application design-in information the figure below shows a typical circuit diagram, using a complementary antenna connection to the pn512. the antenna tuning and rf part matching is described in the application note ?nfc transmission module antenna and rf design guide?. fig 36. typical circuit diagram avdd tvdd rx vmid supply tx1 tvss tx2 dvss dvdd dvdd pvdd svdd avss irq nrstpd r 1 r 2 l 0 c 0 c 0 c 2 c 1 c rx r q r q c 1 c 2 l 0 c vmid 001aan232 27.12 mhz oscin oscout host controller interface pn512 antenna lant
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 103 of 125 nxp semiconductors pn512 transmission module 22. limiting values 23. recommended operating conditions [1] supply voltages below 3 v reduce the perfo rmance (the achievable operating distance). [2] v dda , v ddd and v dd(tvdd) must always be the same voltage. [3] v dd(pvdd) must always be the same or lower voltage than v ddd . table 165. limiting values in accordance with the absolute ma ximum rating system (iec 60134). symbol parameter conditions min max unit v dda analog supply voltage ? 0.5 +4.0 v v ddd digital supply voltage ? 0.5 +4.0 v v dd(pvdd) pvdd supply voltage ? 0.5 +4.0 v v dd(tvdd) tvdd supply voltage ? 0.5 +4.0 v v dd(svdd) svdd supply voltage ? 0.5 +4.0 v v i input voltage all input pi ns except pins sigin and rx v ss(pvss) ? 0.5 v dd(pvdd) + 0.5 v pin mfin v ss(pvss) ? 0.5 v dd(svdd) + 0.5 v p tot total power dissipation per package; and v ddd in shortcut mode - 200 mw t j junction temperature - 100 c v esd electrostatic discharge voltage hbm; 1500 , 100 pf; jesd22-a114-b - 2000 v mm; 0.75 h, 200 pf; jesd22-a114-a - 200 v field induced model; jesc22-c101-a 500 v table 166. operating conditions symbol parameter conditions min typ max unit v dda analog supply voltage v dd(pvdd) v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.5- 3.6v v ddd digital supply voltage v dd(pvdd) v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.5- 3.6v v dd(tvdd) tvdd supply voltage v dd(pvdd) v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.5- 3.6v v dd(pvdd) pvdd supply voltage v dd(pvdd) v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [3] 1.6- 3.6v v dd(svdd) svdd supply voltage v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v 1.6 - 3.6 v t amb ambient temperature hvqfn32, hvqfn40 ? 30 - +85 c
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 104 of 125 nxp semiconductors pn512 transmission module 24. thermal characteristics 25. characteristics table 167. thermal characteristics symbol parameter conditions package typ unit r thj-a thermal resistance from junction to ambient in still air with exposed pad soldered on a 4 layer jedec pcb in still air hvqfn32 40 k/w hvqfn40 35 k/w table 168. characteristics symbol parameter conditions min typ max unit input characteristics pins ea, i 2 c and nrstpd i li input leakage current ? 1-+1 a v ih high-level input voltage 0.7v dd(pvdd) -- v v il low-level input voltage - - 0.3v dd(pvdd) v pin sigin i li input leakage current ? 1-+1 a v ih high-level input voltage 0.7v dd(svdd) -- v v il low-level input voltage - - 0.3v dd(svdd) v pin sda i li input leakage current ? 1-+1 a v ih high-level input voltage 0.7v dd(pvdd) -- v v il low-level input voltage - - 0.3v dd(pvdd) v pin rx [1] v i input voltage ? 1-v dda +1 v c i input capacitance v dda = 3 v; receiver active; v rx(p-p) = 1v; 1.5v (dc) offset -10- pf r i input resistance v dda = 3 v; receiver active; v rx(p-p) =1v; 1.5v (dc) offset - 350 - input voltage range; see figure 37 v i(p-p)(min) minimum peak-to-peak input voltage manchester encoded; v dda =3v - 100 - mv v i(p-p)(max) maximum peak-to-peak input voltage manchester encoded; v dda =3v -4- v input sensitivity; see figure 37 v mod modulation voltage minimum manchester encoded; v dda =3v; rxgain[2:0] = 111b (48 db) -5- mv pin oscin i li input leakage current ? 1-+1 a v ih high-level input voltage 0.7v dda -- v v il low-level input voltage - - 0.3v dda v
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 105 of 125 nxp semiconductors pn512 transmission module c i input capacitance v dda = 2.8 v; dc = 0.65 v; ac = 1 v (p-p) -2- pf input/output characteristics pins d1, d2, d3, d4, d5, d6 and d7 i li input leakage current ? 1-+1 a v ih high-level input voltage 0.7v dd(pvdd) -- v v il low-level input voltage - - 0.3v dd(pvdd) v v oh high-level output voltage v dd(pvdd) =3v; i o =4ma v dd(pvdd) ? 0.4 -v dd(pvdd) v v ol low-level output voltage v dd(pvdd) =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i oh high-level output current v dd(pvdd) =3v - - 4 ma i ol low-level output current v dd(pvdd) =3v - - 4 ma output characteristics pin sigout v oh high-level output voltage v dd(svdd) =3v; i o =4ma v dd(svdd) ? 0.4 -v dd(svdd) v v ol low-level output voltage v dd(svdd) =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i ol low-level output current v dd(svdd) =3v - - 4 ma i oh high-level output current v dd(svdd) =3v - - 4 ma pin irq v oh high-level output voltage v dd(pvdd) =3v; i o =4ma v dd(pvdd) ? 0.4 -v dd(pvdd) v v ol low-level output voltage v dd(pvdd) =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i ol low-level output current v dd(pvdd) =3v - - 4 ma i oh high-level output current v dd(pvdd) =3v - - 4 ma pins aux1 and aux2 v oh high-level output voltage v ddd =3v; i o =4ma v ddd ? 0.4 - v ddd v v ol low-level output voltage v ddd =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i ol low-level output current v ddd =3v - - 4 ma i oh high-level output current v ddd =3v - - 4 ma table 168. characteristics ?continued symbol parameter conditions min typ max unit
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 106 of 125 nxp semiconductors pn512 transmission module pins tx1 and tx2 v oh high-level output voltage v dd(tvdd) =3v; i dd(tvdd) =32ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.15 -- v v dd(tvdd) =3v; i dd(tvdd) =80ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.4 -- v v dd(tvdd) = 2.5 v; i dd(tvdd) =32ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.24 -- v v dd(tvdd) = 2.5 v; i dd(tvdd) =80ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.64 -- v v ol low-level output voltage v dd(tvdd) =3v; i dd(tvdd) =32ma; cwgsp[5:0] = 0fh - - 0.15 v v dd(tvdd) =3v; i dd(tvdd) =80ma; cwgsp[5:0] = 0fh --0.4v v dd(tvdd) = 2.5 v; i dd(tvdd) =32ma; cwgsp[5:0] = 0fh - - 0.24 v v dd(tvdd) = 2.5 v; i dd(tvdd) =80ma; cwgsp[5:0] = 0fh - - 0.64 v current consumption i pd power-down current v dda =v ddd = v dd(tvdd) = v dd(pvdd) =3v hard power-down; pin nrstpd set low [2] --5 a soft power-down; rf level detector on [2] --10 a i ddd digital supply current pin dvdd; v ddd =3v - 6.5 9 ma i dda analog supply current pin avdd; v dda =3v; bit rcvoff = 0 -710ma pin avdd; receiver switched off; v dda =3v; bit rcvoff = 1 -35ma i dd(pvdd) pvdd supply current pin pvdd [3] --40ma i dd(tvdd) tvdd supply current pin tvdd; continuous wave [4] [5] [6] -60100ma i dd(svdd) svdd supply current pin svdd [7] --4ma clock frequency f clk clock frequency - 27.12 - mhz clk clock duty cycle 40 50 60 % t jit jitter time rms - - 10 ps crystal oscillator v oh high-level output voltage pin oscout - 1.1 - v table 168. characteristics ?continued symbol parameter conditions min typ max unit
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 107 of 125 nxp semiconductors pn512 transmission module [1] the voltage on pin rx is clamped by internal diodes to pins avss and avdd. [2] i pd is the total current for all supplies. [3] i dd(pvdd) depends on the overall load at the digital pins. [4] i dd(tvdd) depends on v dd(tvdd) and the external circuit c onnected to pins tx1 and tx2. [5] during typical circuit operation, the overall current is below 100 ma. [6] typical value using a complementary driv er configuration and an antenna matched to 40 between pins tx1 and tx2 at 13.56 mhz. [7] i dd(svdd) depends on the load at pin mfout. 25.1 timing characteristics v ol low-level output voltage pin oscout - 0.2 - v c i input capacitance pin oscout - 2 - pf pin oscin - 2 - pf typical input requirements f xtal crystal frequency - 27.12 - mhz esr equivalent series resistance - - 100 c l load capacitance - 10 - pf p xtal crystal power dissipation - 50 100 mw table 168. characteristics ?continued symbol parameter conditions min typ max unit fig 37. pin rx input voltage range 001aak01 2 vmid 0 v ? 1 v v dda + 1 v v mod v i(p-p)(max) v i(p-p)(min) 13.56 mhz carrier table 169. spi timing characteristics symbol parameter conditions min typ max unit t wl pulse width low line sck 50 - - ns t wh pulse width high line sck 50 - - ns t h(sckh-d) sck high to data input hold time sck to changing mosi 25 - - ns
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 108 of 125 nxp semiconductors pn512 transmission module t su(d-sckh) data input to sck high set-up time changing mosi to sck 25 - - ns t h(sckl-q) sck low to data output hold time sck to changing miso - - 25 ns t (sckl-nssh) sck low to nss high time 0- - ns table 170. i 2 c-bus timing in fast mode symbol parameter conditions fast mode high-speed mode unit min max min max f scl scl clock frequency 0 400 0 3400 khz t hd;sta hold time (repeated) start condition after this period, the first clock pulse is generated 600 - 160 - ns t su;sta set-up time for a repeated start condition 600 - 160 - ns t su;sto set-up time for stop condition 600 - 160 - ns t low low period of the scl clock 1300 - 160 - ns t high high period of the scl clock 600 - 60 - ns t hd;dat data hold time 0 900 0 70 ns t su;dat data set-up time 100 - 10 - ns t r rise time scl signal 20 300 10 40 ns t f fall time scl signal 20 300 10 40 ns t r rise time sda and scl signals 20 300 10 80 ns t f fall time sda and scl signals 20 300 10 80 ns t buf bus free time between a stop and start condition 1.3 - 1.3 - s table 169. spi timing characteristics ?continued symbol parameter conditions min typ max unit
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 109 of 125 nxp semiconductors pn512 transmission module remark: the signal nss must be low to be able to send several bytes in one data stream. to send more than one data stream nss must be set high between the data streams. fig 38. timing diagram for spi fig 39. timing for fast and standard mode devices on the i 2 c-bus 001aaj63 4 t sckl t sckh t sckl t dxsh t shdx t dxsh t sldx t slnh mosi sck miso msb msb lsb lsb nss 001aaj63 5 sda t f scl t low t f t sp t r t hd;sta t hd;dat t hd;sta t r t high t su;dat ssrps t su;sta t su;sto t buf
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 110 of 125 nxp semiconductors pn512 transmission module 25.2 8-bit parallel interface timing 25.2.1 ac symbols each timing symbol has five characters. the fi rst character is always 't' for time. the other characters indicate the name of a signal or the logic state of that signal (depending on position): example: t avll = time for address valid to ale low 25.2.2 ac operating specification 25.2.2.1 bus timing for separated read/write strobe table 171. ac symbols designation signal designation logic level a address h high d data l low w nwr or nwait z high impedance r nrd or r/nw or nwrite x any level or data l ale or as v any valid signal or data c ncs n nss s nds or ndstrb and nastrb, sck table 172. timing specification for separated read/write strobe symbol parameter min max unit t lhll ale pulse width 10 - ns t avll multiplexed address bus valid to ale low (address set up time) 5 - ns t llax multiplexed address bus valid after ale low (address hold time) 5 - ns t llwl ale low to nwr, nrd low 10 - ns t clwl ncs low to nrd, nwr low 0 - ns t whch nrd, nwr high to ncs high 0 - ns t rldv nrd low to data valid - 35 ns t rhdz nrd high to data high impedance - 10 ns t dvwh data valid to nwr high 5 - ns t whdx data hold after nwr high (data hold time) 5 - ns t wlwh nrd, nwr pulse width 40 - ns t avwl separated address bus valid to nrd, nwr low (set up time) 30 - ns t whax separated address bus valid after nwr high (hold time) 5 - ns t whwl period between sequenced read/write accesses 40 - ns
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 111 of 125 nxp semiconductors pn512 transmission module remark: for separated address and data bus the signal ale is not relevant and the multiplexed addresses on the data bus don?t care. for the multiplexed address and data bus the address lines a0 to a3 have to be connected as described in chapter automati c host controller interface type detection. 25.2.2.2 bus timing for common read/write strobe fig 40. timing diagram for separated read/write strobe 001aan2 33 t lhll t clwl t llwl t whwl t wlwh t whwl t whdx t rhdz t wldv t rldv t whch t whax t avll t llax t avwl ale ncs nwr nrd d0...d7 d0...d7 a0...a3 multiplexed addressbus a0...a3 separated addressbus a0...a3 table 173. timing specification for common read/write strobe symbol parameter min max unit t lhll as pulse width 10 - ns t avll multiplexed address bus valid to as low (address set up time) 5 - ns t llax multiplexed address bus valid after as low (address hold time) 5 - ns t llsl as low to nds low 10 - ns t clsl ncs low to nds low 0 - ns t shch nds high to ncs high 0 - ns t sldv,r nds low to data valid (for read cycle) - 35 ns t shdz nds low to data high impedance (read cycle) - 10 ns t dvsh data valid to nds high (for write cycle) 5 - ns t shdx data hold after nds high (write cycle, hold time) 5 - ns t shrx r/nw hold after nds high 5 - ns t slsh nds pulse width 40 - ns t avsl separated address bus valid to nds low (hold time) 30 - ns t shax separated address bus valid after nds high (set up time) 5 - ns
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 112 of 125 nxp semiconductors pn512 transmission module remark: for separated address and data bus the signal ale is not relevant and the multiplexed addresses on the data bus don?t care. for the multiplexed address and data bus the address lines a0 to a3 have to be connected as described in automatic -controller interface type detection. fig 41. timing diagram for common read/write strobe separated addressbus a0...a3 multiplexed addressbus a0...a3 ale t lhll t clsl r/nw nds d0...d7 d0...d7 a0...a3 ncs t shch t shrx t rvsl t llsl t slsh t shsl t avll t llax t sldv, r t sldv, w t shdx t shdz t shax t avsl t shsl 001aan23 4
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 113 of 125 nxp semiconductors pn512 transmission module 26. package information the pn512 can be delivered in 2 different packages. table 174. package information package remarks hvqfn32 8-bit parallel interface not supported hvqfn40 supports the 8-bit parallel interface
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 114 of 125 nxp semiconductors pn512 transmission module 27. package outline fig 42. package outline package version (hvqfn32) 0.5 1 a 1 e h b unit y e 0.2 c references outline version european projection issue date iec jedec jeita mm 5.1 4.9 d h 3.25 2.95 y 1 5.1 4.9 3.25 2.95 e 1 3.5 e 2 3.5 0.30 0.18 0.05 0.00 0.05 0.1 dimensions (mm are the original dimensions) sot617-1 mo-220 - - - - - - 0.5 0.3 l 0.1 v 0.05 w 0 2.5 5 mm scale sot617 -1 h vqfn32: plastic thermal enhanced very thin quad flat package; no leads; 3 2 terminals; body 5 x 5 x 0.85 mm a (1) max. a a 1 c detail x y y 1 c e l e h d h e e 1 b 916 32 25 24 17 8 1 x d e c b a e 2 terminal 1 index area terminal 1 index area 01-08-08 02-10-18 1/2 e 1/2 e a c c b v m w m e (1) note 1. plastic or metal protrusions of 0.075 mm maximum per side are not included. d (1)
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 115 of 125 nxp semiconductors pn512 transmission module fig 43. package outline package version (hvqfn40) terminal 1 index area 0.5 1 a 1 e h b unit y e 0.2 c references outline version european projection issue date iec jedec jeita mm 6.1 5.9 d h 4.25 3.95 y 1 6.1 5.9 4.25 3.95 e 1 4.5 e 2 4.5 0.30 0.18 0.05 0.00 0.05 0.1 dimensions (mm are the original dimensions) sot618-1 mo-220 - - - - - - 0.5 0.3 l 0.1 v 0.05 w 0 2.5 5 mm scale sot618 -1 h vqfn40: plastic thermal enhanced very thin quad flat package; no leads; 4 0 terminals; body 6 x 6 x 0.85 mm a (1) max. a a 1 c detail x y y 1 c e l e h d h e e 1 b 11 20 40 31 30 21 10 1 x d e c b a e 2 01-08-08 02-10-22 terminal 1 index area 1/2 e 1/2 e a c c b v m w m note 1. plastic or metal protrusions of 0.075 mm maximum per side are not included. d (1) e (1)
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 116 of 125 nxp semiconductors pn512 transmission module 28. abbreviations 29. glossary modulation index ? defined as the voltage ratio (v max ? v min ) / (v max + v min ). load modulation index ? defined as the voltage ratio for the card (v max ? v min )/(v max +v min ) measured at the card?s coil. initiator ? generates rf field at 13.56 mhz and starts the nfcip-1 communication. target ? responds to command either using load modulation scheme (rf field generated by initiator) or using modulation of self generated rf field (no rf field generated by initiator). 30. references [1] application note ? nfc transmission module an tenna and rf design guide table 175. abbreviations acronym description adc analog-to-digital converter ask amplitude shift keying bpsk binary phase shift keying crc cyclic redundancy check cw continuous wave dac digital-to-analog converter eof end of frame hbm human body model i 2 c inter-integrated circuit lsb least significant bit miso master in slave out mm machine model mosi master out slave in msb most significant bit nss not slave select pcb printed-circuit board pll phase-locked loop prbs pseudo-random bit sequence rx receiver sof start of frame spi serial peripheral interface tx transmitter uart universal asynchronous receiver transmitter
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 117 of 125 nxp semiconductors pn512 transmission module 31. revision history table 176. revision history document id release date data sheet status change notice supersedes pn512 v3.7 20110518 product data sheet - pn512 v.3.6 modifications: ? section 32.4 ? licenses ? on page 119 : license statement ?purchase of nxp ics with nfc technology? added pn512 v.3.6 20110310 product data sheet - pn512 v.3.5 modifications: ? figure 36: corrected pn512 v.3.5 20110211 product data sheet - 111334 modifications: ? ta b l e 2 : type number upadated ? general re-wording of mifare designation and commercial conditions. ? graphics: updated to latest standard. ? descriptive text: updated. ? register and bit names: updated. ? register tables: presentation updated. ? parameter symbols: updated. ? section 9.2.2.4: register update ? section 9.2.2.10: register update ? section 9.2.2.15: register update ? section 9.2.3.10: register update ? section 9.2.4.7: register update ? section 9.1.1: update of version ? section 9.2.4.8: update of version ? section 15: updated of time calculation ? section 20: updated of selftest result 111334 8 september 2009 product data sheet - 111333 111333 21 january 2009 product data sheet - 111332 111332 june 2007 product data sheet - 111331 111331 january 2007 product data sheet - 111330 111330 october 2006 product data sheet - 111310 111310 june 2005 objective data sheet - modifications: ? initial version
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 118 of 125 nxp semiconductors pn512 transmission module 32. legal information 32.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term ?short data sheet? is explained in section ?definitions?. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple device s. the latest product status information is available on the internet at url http://www.nxp.com . 32.2 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. short data sheet ? a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request vi a the local nxp semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. product specification ? the information and data provided in a product data sheet shall define the specification of the product as agreed between nxp semiconductors and its customer , unless nxp semiconductors and customer have explicitly agreed otherwis e in writing. in no event however, shall an agreement be valid in which the nxp semiconductors product is deemed to offer functions and qualities beyond those described in the product data sheet. 32.3 disclaimers limited warranty and liability ? information in this document is believed to be accurate and reliable. however, nxp semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. in no event shall nxp semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interrupt ion, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. notwithstanding any damages that customer might incur for any reason whatsoever, nxp semiconductors? aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the terms and conditions of commercial sale of nxp semiconductors. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. customers are responsible for the design and operation of their applications and products using nxp semiconductors products, and nxp semiconductors accepts no liability for any assistance with applications or customer product design. it is customer?s sole responsibility to determine whether the nxp semiconductors product is suitable and fit for the customer?s applications and products planned, as well as fo r the planned application and use of customer?s third party customer(s). customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. nxp semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer?s applications or products, or the application or use by customer?s third party customer(s). customer is responsible for doing all necessary testing for the customer?s applic ations and products using nxp semiconductors products in order to av oid a default of the applications and the products or of the application or use by customer?s third party customer(s). nxp does not accept any liability in this respect. limiting values ? stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) will cause permanent damage to the device. limiting values are stress ratings only and (proper) operation of the device at these or any other conditions above those given in the recommended operating conditions section (if present) or the characteristics sections of this document is not warranted. constant or repeated exposure to limiting values will permanently and irreversibly affect the quality and reliability of the device. terms and conditions of commercial sale ? nxp semiconductors products are sold subject to the gener al terms and conditions of commercial sale, as published at http://www.nxp.com/profile/terms , unless otherwise agreed in a valid written individual agreement. in case an individual agreement is concluded only the terms and conditions of the respective agreement shall apply. nxp semiconductors hereby expressly objects to applying the customer?s general terms and conditions with regard to the purchase of nxp semiconducto rs products by customer. no offer to sell or license ? nothing in this document may be interpreted or construed as an offer to sell products t hat is open for acceptance or the grant, conveyance or implication of any lic ense under any copyrights, patents or other industrial or intellectual property rights. export control ? this document as well as the item(s) described herein may be subject to export control regulations. export might require a prior authorization from national authorities. document status [1] [2] product status [3] definition objective [short] data sheet development this document contains data from the objecti ve specification for product development. preliminary [short] data sheet qualification this document contains data from the preliminary specification. product [short] data sheet production this docu ment contains the product specification.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 119 of 125 nxp semiconductors pn512 transmission module quick reference data ? the quick reference data is an extract of the product data given in the limiting values and characteristics sections of this document, and as such is not comple te, exhaustive or legally binding. non-automotive qualified products ? unless this data sheet expressly states that this specific nxp semicon ductors product is automotive qualified, the product is not suitable for automotive use. it is neither qualified nor tested in accordance with automotive testing or application requirements. nxp semiconductors accepts no liabili ty for inclusion and/or use of non-automotive qualified products in automotive equipment or applications. in the event that customer uses t he product for design-in and use in automotive applications to automotive s pecifications and standards, customer (a) shall use the product without nxp semiconductors? warranty of the product for such automotive applicat ions, use and specifications, and (b) whenever customer uses the product for automotive applications beyond nxp semiconductors? specifications such use shall be solely at customer?s own risk, and (c) customer fully in demnifies nxp semi conductors for any liability, damages or failed product claims resulting from customer design and use of the product for automotive appl ications beyond nxp semiconductors? standard warranty and nxp semicond uctors? product specifications. 32.4 licenses 32.5 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. i 2 c-bus ? logo is a trademark of nxp b.v. mifare ? is a trademark of nxp b.v. 33. contact information for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com purchase of nxp ics with iso/iec 14443 type b functionality this nxp semiconductors ic is iso/iec 14443 type b software enabled and is licensed under innovatron?s contactless card patents license for iso/iec 14443 b. the license includes the right to use the ic in systems and/or end-user equipment. ratp/innovatron technology purchase of nxp ics with nfc technology purchase of an nxp semiconductors ic that complies with one of the near field communication (nfc) standards iso/iec 18092 and iso/iec 21481 does not convey an implied license unde r any patent right infringed by implementation of any of those standards. a license for the patents portfolio of nxp b.v. for the nfc standards needs to be obtained at via licensing, the pool agent of the nfc patent pool, e-mail: info@vialicensing.com .
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 120 of 125 nxp semiconductors pn512 transmission module 34. tables table 1. quick reference data . . . . . . . . . . . . . . . . . . . . .4 table 2. ordering information . . . . . . . . . . . . . . . . . . . . .4 table 3. pin description hvqfn32 . . . . . . . . . . . . . . . . .8 table 4. pin description hvqfn40 . . . . . . . . . . . . . . . . .9 table 5. communication overview for iso/iec 14443 a/mifare reader/writer . . . . .10 table 6. communication overview for felica reader/writer . . . . . . . . . . . . . . . . . . . . . . . . . . .12 table 7. felica framing and coding . . . . . . . . . . . . . . . .12 table 8. start value for the crc polynomial: (00h), (00h)12 table 9. communication overview for active communication mode . . . . . . . . . . . . . . . . . . . .14 table 10. communication overview for passive communication mode . . . . . . . . . . . . . . . . . . . .15 table 11. framing and coding overview. . . . . . . . . . . . . .16 table 12. mifare card operation mode . . . . . . . . . . . . .16 table 13. felica card operation mode . . . . . . . . . . . . . .17 table 14. pn512 registers overview . . . . . . . . . . . . . . . .17 table 15. behavior of register bits and its designation . . .19 table 16. pagereg register (address 00h); reset value: 00h, 0000000b . . . . . . . . . . . . . . . . . . . . . . . . .20 table 17. description of pagereg bits . . . . . . . . . . . . . . .20 table 18. commandreg register (address 01h); reset value: 20h, 00100000b . . . . . . . . . . . . . . . . . . .20 table 19. description of commandreg bits . . . . . . . . . . .20 table 20. commienreg register (address 02h); reset value: 80h, 10000000b . . . . . . . . . . . . . . . . . . . . . . . .21 table 21. description of commienreg bits . . . . . . . . . . .21 table 22. divienreg register (address 03h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .22 table 23. description of divienreg bits . . . . . . . . . . . . . .22 table 24. commirqreg register (address 04h); reset value: 14h, 00010100b . . . . . . . . . . . . . . . . . . . . . . . .23 table 25. description of commirqreg bits . . . . . . . . . . .23 table 26. divirqreg register (address 05h); reset value: xxh, 000x00xxb . . . . . . . . . . . . . . . . . . . . . . .24 table 27. description of divirqreg bits . . . . . . . . . . . . .24 table 28. errorreg register (address 06h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 table 29. description of errorreg bits . . . . . . . . . . . . . . .25 table 30. status1reg register (address 07h); reset value: xxh, x100x01xb . . . . . . . . . . . . . . . . . . . . . . .26 table 31. description of status1reg bits . . . . . . . . . . . . .26 table 32. status2reg register (address 08h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .27 table 33. description of status2reg bits . . . . . . . . . . . . .27 table 34. fifodatareg register (address 09h); reset value: xxh, xxxxxxxxb . . . . . . . . . . . . . . . . . . . . . .28 table 35. description of fifodatareg bits . . . . . . . . . . .28 table 36. fifolevelreg register (address 0ah); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . .28 table 37. description of fifolevelreg bits. . . . . . . . . . .28 table 38. waterlevelreg register (address 0bh); reset value: 08h, 00001000b . . . . . . . . . . . . . . . . . . .29 table 39. description of waterlevelreg bits . . . . . . . . . .29 table 40. controlreg register (address 0ch); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 29 table 41. description of controlreg bits . . . . . . . . . . . . 29 table 42. bitframingreg register (address 0dh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 30 table 43. description of bitframi ngreg bits . . . . . . . . . . 30 table 44. collreg register (address 0eh); reset value: xxh, 101xxxxxb . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 45. description of collreg bits. . . . . . . . . . . . . . . . 31 table 46. pagereg register (address 10h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 47. description of pagereg bits . . . . . . . . . . . . . . 32 table 48. modereg register (address 11h); reset value: 3bh, 00111011b . . . . . . . . . . . . . . . . . . . . . . . . 33 table 49. description of modereg bits . . . . . . . . . . . . . . 33 table 50. txmodereg register (address 12h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 34 table 51. description of txmodereg bits . . . . . . . . . . . . 34 table 52. rxmodereg register (address 13h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 35 table 53. description of rxmodereg bits . . . . . . . . . . . . 35 table 54. txcontrolreg register (address 14h); reset value: 80h, 10000000b . . . . . . . . . . . . . . . . . . . . . . . . 36 table 55. description of txcontrolreg bits . . . . . . . . . . . 36 table 56. txautoreg register (address 15h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 37 table 57. description of txautoreg bits . . . . . . . . . . . . . 37 table 58. txselreg register (address 16h); reset value: 10h, 00010000b . . . . . . . . . . . . . . . . . . . . . . . . 38 table 59. description of txselreg bits . . . . . . . . . . . . . . 38 table 60. rxselreg register (address 17h); reset value: 84h, 10000100b . . . . . . . . . . . . . . . . . . . . . . . . 40 table 61. description of rxselreg bits . . . . . . . . . . . . . . 40 table 62. rxthresholdreg register (address 18h); reset value: 84h, 10000100b . . . . . . . . . . . . . . . . . . 40 table 63. description of rxthresholdreg bits . . . . . . . . 40 table 64. demodreg register (address 19h); reset value: 4dh, 01001101b. . . . . . . . . . . . . . . . . . . . . . . . 41 table 65. description of demodreg bits . . . . . . . . . . . . . 41 table 66. felnfc1reg register (address 1ah); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 42 table 67. description of felnfc1reg bits . . . . . . . . . . . 42 table 68. felnfc2reg register (address1bh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 43 table 69. description of felnfc2reg bits . . . . . . . . . . . 43 table 70. mifnfcreg register (address 1ch); reset value: 62h, 01100010b . . . . . . . . . . . . . . . . . . . . . . . . 44 table 71. description of mifnfcreg bits. . . . . . . . . . . . . 44 table 72. manualrcvreg register (address 1dh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 45 table 73. description of manualrcvreg bits . . . . . . . . . 45 table 74. typebreg register (address 1eh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 46 table 75. description of typebreg bits. . . . . . . . . . . . . . 46 table 76. serialspeedreg register (address 1fh); reset value: ebh, 11101011b . . . . . . . . . . . . . . . . . . 46 table 77. description of serialspeedreg bits . . . . . . . . . 47
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 121 of 125 nxp semiconductors pn512 transmission module table 78. pagereg register (address 20h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 table 79. description of pagereg bits . . . . . . . . . . . . . . .48 table 80. crcresultreg register (address 21h); reset value: ffh, 11111111b. . . . . . . . . . . . . . . . . . . . 48 table 81. description of crcresultreg bits . . . . . . . . . .48 table 82. crcresultreg register (address 22h); reset value: ffh, 11111111b. . . . . . . . . . . . . . . . . . . . 48 table 83. description of crcresultreg bits . . . . . . . . . .48 table 84. gsnoffreg register (address 23h); reset value: 88h, 10001000b . . . . . . . . . . . . . . . . . . . . . . . .49 table 85. description of gsnoffreg bits . . . . . . . . . . . . .49 table 86. modwidthreg register (address 24h); reset value: 26h, 00100110b . . . . . . . . . . . . . . . . . . . . . . . .50 table 87. description of modwidthreg bits . . . . . . . . . . .50 table 88. txbitphasereg register (address 25h); reset value: 87h, 10000111b . . . . . . . . . . . . . . . . . . .50 table 89. description of txbitphasereg bits . . . . . . . . . .50 table 90. rfcfgreg register (address 26h); reset value: 48h, 01001000b . . . . . . . . . . . . . . . . . . . . . . . .51 table 91. description of rfcfgreg bits . . . . . . . . . . . . .51 table 92. gsnonreg register (address 27h); reset value: 88h, 10001000b . . . . . . . . . . . . . . . . . . . . . . . .52 table 93. description of gsnonreg bits . . . . . . . . . . . . .52 table 94. cwgspreg register (address 28h); reset value: 20h, 00100000b . . . . . . . . . . . . . . . . . . . . . . . .52 table 95. description of cwgspreg bits. . . . . . . . . . . . .52 table 96. modgspreg register (address 29h); reset value: 20h, 00100000b . . . . . . . . . . . . . . . . . . . . . . . .53 table 97. description of modgspreg bits . . . . . . . . . . . .53 table 98. tmodereg register (address 2ah); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .53 table 99. description of tmodereg bits . . . . . . . . . . . . .53 table 100. tprescalerreg register (address 2bh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . .54 table 101. description of tprescalerreg bits . . . . . . . . . .54 table 102. treloadreg (higher bits) register (address 2ch); reset value: 00h, 00000000b . . . . . . . . . . . . . .55 table 103. description of the higher treloadreg bits . . .55 table 104. treloadreg (lower bits) register (address 2dh); reset value: 00h, 00000000b . . . . . . . . . . . . . .55 table 105. description of lower treloadreg bits . . . . . . .55 table 106. tcountervalreg (higher bits) register (address 2eh); reset value: xxh, xxxxxxxxb . . . . . . .56 table 107. description of the higher tcountervalreg bits 56 table 108. tcountervalreg (lower bits) register (address 2fh); reset val ue: xxh, xxxxxxxxb. . . . . . . .56 table 109. description of lower tcountervalreg bits . . . .56 table 110. pagereg register (address 30h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .56 table 111. description of pagereg bi ts . . . . . . . . . . . . . . .57 table 112. testsel1reg register (address 31h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .58 table 113. description of testsel1reg bits . . . . . . . . . . . .58 table 114. testsel2reg register (address 32h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .58 table 115. description of testsel2reg bits . . . . . . . . . . . .58 table 116. testpinenreg register (address 33h); reset value: 80h, 10000000b . . . . . . . . . . . . . . . . . . 59 table 117. description of testpinenreg bits . . . . . . . . . . 59 table 118. testpinvaluereg register (address 34h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 59 table 119. description of testpinvaluereg bits . . . . . . . . 59 table 120. testbusreg register (address 35h); reset value: xxh, xxxxxxxxb . . . . . . . . . . . . . . . . . . . . . . 60 table 121. description of testbusreg bits . . . . . . . . . . . . 60 table 122. autotestreg register (address 36h); reset value: 40h, 01000000b . . . . . . . . . . . . . . . . . . . . . . . . 60 table 123. description of bits . . . . . . . . . . . . . . . . . . . . . . 60 table 124. versionreg register (address 37h); reset value: xxh, xxxxxxxxb . . . . . . . . . . . . . . . . . . . . . . 61 table 125. description of versionreg bits . . . . . . . . . . . . 61 table 126. analogtestreg register (address 38h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 62 table 127. description of analogtestreg bits . . . . . . . . . 62 table 128. testdac1reg register (address 39h); reset value: xxh, 00xxxxxxb . . . . . . . . . . . . . . . . . 63 table 129. description of testdac1reg bits . . . . . . . . . . 63 table 130. testdac2reg register (address 3ah); reset value: xxh, 00xxxxxxb . . . . . . . . . . . . . . . . . 63 table 131. description oftestdac2reg bits . . . . . . . . . . . 63 table 132. testadcreg register (address 3bh); reset value: xxh, xxxxxxxxb . . . . . . . . . . . . . . . . . . . . . . 63 table 133. description of testadcreg bits . . . . . . . . . . . 63 table 134. rftreg register (address 3ch); reset value: ffh, 11111111b . . . . . . . . . . . . . . . . . . . . . . . . 64 table 135. description of rftreg bits . . . . . . . . . . . . . . . 64 table 136. rftreg register (address 3dh, 3fh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 64 table 137. description of rftreg bits . . . . . . . . . . . . . . . 64 table 138. rftreg register (address 3eh); reset value: 03h, 00000011b . . . . . . . . . . . . . . . . . . . . . . . . 64 table 139. description of rftreg bits . . . . . . . . . . . . . . . 64 table 140. connection protocol for detecting different interface types . . . . . . . . . . . . . . . . . . . . . . . . . 65 table 141. connection scheme for detecting the different interface types . . . . . . . . . . . . . . . . . . . . . . . . . 65 table 142. mosi and miso byte order . . . . . . . . . . . . . . 66 table 143. mosi and miso byte order . . . . . . . . . . . . . . 67 table 144. address byte 0 register; address mosi . . . . . 67 table 145. br_t0 and br_t1 settings . . . . . . . . . . . . . . 68 table 146. selectable uart tran sfer speeds . . . . . . . . . 68 table 147. uart framing . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 148. read data byte order . . . . . . . . . . . . . . . . . . . 69 table 149. write data byte order . . . . . . . . . . . . . . . . . . . 69 table 150. address byte 0 register; address mosi . . . . . 71 table 151. supported interface types . . . . . . . . . . . . . . . . 78 table 152. register and bit settings controlling the signal on pin tx1 . . . . . . . . . . . . . . . . . . . . . . 80 table 153. register and bit settings controlling the signal on pin tx2 . . . . . . . . . . . . . . . . . . . . . . 81 table 154. setting of the bits rflevel in register rfcfgreg (rflevel amplifier deactivated) . . . . . . . . . . . . 82 table 155. crc coprocessor parame ters . . . . . . . . . . . . 89 table 156. interrupt sources . . . . . . . . . . . . . . . . . . . . . . 91 table 157. command overview . . . . . . . . . . . . . . . . . . . . 97
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 122 of 125 nxp semiconductors pn512 transmission module table 158. testsignal routing (testsel2reg = 07h) . . . . .100 table 159. description of testsignals . . . . . . . . . . . . . . .100 table 160. testsignal routing (testsel2reg = 0dh) . . . .100 table 161. description of testsignals . . . . . . . . . . . . . . .101 table 162. testsignal routing (testsel2reg = 19h) . . . . .101 table 163. description of testsignals . . . . . . . . . . . . . . .101 table 164. testsignals description. . . . . . . . . . . . . . . . . .101 table 165. limiting values . . . . . . . . . . . . . . . . . . . . . . .103 table 166. operating conditions . . . . . . . . . . . . . . . . . . .103 table 167. thermal characteristics . . . . . . . . . . . . . . . . .104 table 168. characteristics . . . . . . . . . . . . . . . . . . . . . . .104 table 169. spi timing characteristics . . . . . . . . . . . . . . .107 table 170. i 2 c-bus timing in fast mode . . . . . . . . . . . . .108 table 171. ac symbols . . . . . . . . . . . . . . . . . . . . . . . . . . 110 table 172. timing specification for separated read/write strobe. . . . . . . . . . . . . . . . . . . . . . 110 table 173. timing specification for common read/write strobe. . . . . . . . . . . . . . . . . . . . . . 111 table 174. package information . . . . . . . . . . . . . . . . . . . 113 table 175. abbreviations . . . . . . . . . . . . . . . . . . . . . . . . 116 table 176. revision history . . . . . . . . . . . . . . . . . . . . . . . 117
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 123 of 125 nxp semiconductors pn512 transmission module 35. figures fig 1. simplified block diagram of the pn512 . . . . . . . . .5 fig 2. detailed block diagram of the pn512 . . . . . . . . . .6 fig 3. pinning configuration hvqfn32 (sot617-1) . . . .7 fig 4. pinning configuration hvqfn40 (sot618-1) . . . .7 fig 5. pn512 read/write mode . . . . . . . . . . . . . . . . . . .10 fig 6. iso/iec 14443 a/mifare read/write mode communication diagram. . . . . . . . . . . . . . . . . . . .10 fig 7. data coding and framing according to iso/iec 14443 a . . . . . . . . . . . . . . . . . . . . . . . . . 11 fig 8. felica reader/writer communication diagram . . .12 fig 9. nfcip-1 mode . . . . . . . . . . . . . . . . . . . . . . . . . . .13 fig 10. active communication mode . . . . . . . . . . . . . . . .14 fig 11. passive communication mode . . . . . . . . . . . . . . .15 fig 12. spi connection to host . . . . . . . . . . . . . . . . . . . . .66 fig 13. uart connection to microcontrollers . . . . . . . . .67 fig 14. uart read data timing diagram . . . . . . . . . . . . .69 fig 15. uart write data timing di agram . . . . . . . . . . . . .70 fig 16. i 2 c-bus interface . . . . . . . . . . . . . . . . . . . . . . . . .71 fig 17. bit transfer on the i 2 c-bus . . . . . . . . . . . . . . . . . .72 fig 18. start and stop conditions . . . . . . . . . . . . . . .72 fig 19. acknowledge on the i 2 c-bus . . . . . . . . . . . . . . . .73 fig 20. data transfer on the i 2 c-bus . . . . . . . . . . . . . . . .73 fig 21. first byte following the start procedure . . . . . .74 fig 22. register read and write access . . . . . . . . . . . . . .75 fig 23. i 2 c-bus hs mode protocol switch . . . . . . . . . . . .76 fig 24. i 2 c-bus hs mode protocol frame. . . . . . . . . . . . .77 fig 25. connection to host controller with separated read/write strobes . . . . . . . . . . . . . . . . . . . . . . .79 fig 26. connection to host controller with common read/write strobes . . . . . . . . . . . . . . . . . . . . . . .79 fig 27. data mode detector . . . . . . . . . . . . . . . . . . . . . . .83 fig 28. serial data switch for tx1 and tx2 . . . . . . . . . . .84 fig 29. communication flows using the s 2 c interface. . .85 fig 30. signal shape for sigout in felica card sam mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 fig 31. signal shape for sigin in sam mode . . . . . . . . .86 fig 32. signal shape for sigout in mifare card sam mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 fig 33. signal shape for sigin in mifare card sam mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 fig 34. quartz crystal connection . . . . . . . . . . . . . . . . . .95 fig 35. oscillator start-up time . . . . . . . . . . . . . . . . . . . . .96 fig 36. typical circuit diagram . . . . . . . . . . . . . . . . . . . .102 fig 37. pin rx input voltage range . . . . . . . . . . . . . . . .107 fig 38. timing diagram for spi . . . . . . . . . . . . . . . . . . .109 fig 39. timing for fast and standard mode devices on the i 2 c-bus . . . . . . . . . . . . . . . . . . . . . . . . . .109 fig 40. timing diagram for separated read/write strobe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 fig 41. timing diagram for common read/write strobe 112 fig 42. package outline package version (hvqfn32) . 114 fig 43. package outline package version (hvqfn40) . 115
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserved. product data sheet company public rev. 3.7 ? 18 may 2011 111337 124 of 125 nxp semiconductors pn512 transmission module 36. contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 general description . . . . . . . . . . . . . . . . . . . . . . 1 3 features and benefits . . . . . . . . . . . . . . . . . . . . 3 4 quick reference data . . . . . . . . . . . . . . . . . . . . . 4 5 ordering information . . . . . . . . . . . . . . . . . . . . . 4 6 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 5 7 pinning information . . . . . . . . . . . . . . . . . . . . . . 7 7.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 7.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 8 8 functional description . . . . . . . . . . . . . . . . . . 10 8.1 iso/iec 14443 a/mifare functionality . . . . . 10 8.2 iso/iec 14443 b functionality . . . . . . . . . . . . 11 8.3 felica reader/writer functionality . . . . . . . . . . 12 8.3.1 felica framing and coding . . . . . . . . . . . . . . . 12 8.4 nfcip-1 mode . . . . . . . . . . . . . . . . . . . . . . . . 13 8.4.1 active communication mode . . . . . . . . . . . . . 14 8.4.2 passive communication mode . . . . . . . . . . . . 15 8.4.3 nfcip-1 framing and coding . . . . . . . . . . . . . 16 8.4.4 nfcip-1 protocol support . . . . . . . . . . . . . . . . 16 8.4.5 mifare card operation mode . . . . . . . . . . . . 16 8.4.6 felica card operation mode . . . . . . . . . . . . . 17 9 pn512 register set . . . . . . . . . . . . . . . . . . . . . 17 9.1 pn512 registers overview. . . . . . . . . . . . . . . . 17 9.1.1 register bit behavior. . . . . . . . . . . . . . . . . . . . 19 9.2 register description . . . . . . . . . . . . . . . . . . . . 20 9.2.1 page 0: command and status . . . . . . . . . . . . 20 9.2.1.1 pagereg. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 9.2.1.2 commandreg . . . . . . . . . . . . . . . . . . . . . . . . 20 9.2.1.3 commienreg . . . . . . . . . . . . . . . . . . . . . . . . . 21 9.2.1.4 divienreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 9.2.1.5 commirqreg . . . . . . . . . . . . . . . . . . . . . . . . . 23 9.2.1.6 divirqreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 9.2.1.7 errorreg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 9.2.1.8 status1reg . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 9.2.1.9 status2reg . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 9.2.1.10 fifodatareg . . . . . . . . . . . . . . . . . . . . . . . . . 28 9.2.1.11 fifolevelreg . . . . . . . . . . . . . . . . . . . . . . . . 28 9.2.1.12 waterlevelreg . . . . . . . . . . . . . . . . . . . . . . . . 29 9.2.1.13 controlreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 9.2.1.14 bitframingreg . . . . . . . . . . . . . . . . . . . . . . . . 30 9.2.1.15 collreg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 9.2.2 page 1: communication . . . . . . . . . . . . . . . . . 32 9.2.2.1 pagereg. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 9.2.2.2 modereg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 9.2.2.3 txmodereg . . . . . . . . . . . . . . . . . . . . . . . . . . 34 9.2.2.4 rxmodereg . . . . . . . . . . . . . . . . . . . . . . . . . . 35 9.2.2.5 txcontrolreg . . . . . . . . . . . . . . . . . . . . . . . . . 36 9.2.2.6 txautoreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 9.2.2.7 txselreg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 9.2.2.8 rxselreg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 9.2.2.9 rxthresholdreg. . . . . . . . . . . . . . . . . . . . . . . 40 9.2.2.10 demodreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 9.2.2.11 felnfc1reg. . . . . . . . . . . . . . . . . . . . . . . . . . 42 9.2.2.12 felnfc2reg. . . . . . . . . . . . . . . . . . . . . . . . . . 43 9.2.2.13 mifnfcreg . . . . . . . . . . . . . . . . . . . . . . . . . . 44 9.2.2.14 manualrcvreg . . . . . . . . . . . . . . . . . . . . . . . 45 9.2.2.15 typebreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 9.2.2.16 serialspeedreg . . . . . . . . . . . . . . . . . . . . . . . 46 9.2.3 page 2: configuration . . . . . . . . . . . . . . . . . . 48 9.2.3.1 pagereg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 9.2.3.2 crcresultreg . . . . . . . . . . . . . . . . . . . . . . . 48 9.2.3.3 gsnoffreg . . . . . . . . . . . . . . . . . . . . . . . . . . 49 9.2.3.4 modwidthreg . . . . . . . . . . . . . . . . . . . . . . . . 50 9.2.3.5 txbitphasereg . . . . . . . . . . . . . . . . . . . . . . . 50 9.2.3.6 rfcfgreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 9.2.3.7 gsnonreg . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.2.3.8 cwgspreg . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.2.3.9 modgspreg . . . . . . . . . . . . . . . . . . . . . . . . . 53 9.2.3.10 tmode register, tprescaler register . . . . . . 53 9.2.3.11 treloadreg. . . . . . . . . . . . . . . . . . . . . . . . . . 55 9.2.3.12 tcountervalreg . . . . . . . . . . . . . . . . . . . . . . 56 9.2.4 page 3: test . . . . . . . . . . . . . . . . . . . . . . . . . . 56 9.2.4.1 pagereg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 9.2.4.2 testsel1reg. . . . . . . . . . . . . . . . . . . . . . . . . . 58 9.2.4.3 testsel2reg. . . . . . . . . . . . . . . . . . . . . . . . . . 58 9.2.4.4 testpinenreg . . . . . . . . . . . . . . . . . . . . . . . . 59 9.2.4.5 testpinvaluereg . . . . . . . . . . . . . . . . . . . . . . 59 9.2.4.6 testbusreg . . . . . . . . . . . . . . . . . . . . . . . . . . 60 9.2.4.7 autotestreg . . . . . . . . . . . . . . . . . . . . . . . . . 60 9.2.4.8 versionreg . . . . . . . . . . . . . . . . . . . . . . . . . . 60 9.2.4.9 analogtestreg. . . . . . . . . . . . . . . . . . . . . . . . 62 9.2.4.10 testdac1reg . . . . . . . . . . . . . . . . . . . . . . . . 63 9.2.4.11 testdac2reg . . . . . . . . . . . . . . . . . . . . . . . . 63 9.2.4.12 testadcreg . . . . . . . . . . . . . . . . . . . . . . . . . 63 9.2.4.13 rftreg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 10 digital interfaces . . . . . . . . . . . . . . . . . . . . . . . 64 10.1 automatic microcontroller interface detection 64 10.2 serial peripheral interface . . . . . . . . . . . . . . . 66 10.2.1 spi read data . . . . . . . . . . . . . . . . . . . . . . . . . 66 10.2.2 spi write data. . . . . . . . . . . . . . . . . . . . . . . . . 66 10.2.3 spi address byte . . . . . . . . . . . . . . . . . . . . . . 67 10.3 uart interface . . . . . . . . . . . . . . . . . . . . . . . 67 10.3.1 connection to a host . . . . . . . . . . . . . . . . . . . 67 10.3.2 selectable uart transfer speeds . . . . . . . . . 67 10.3.3 uart framing . . . . . . . . . . . . . . . . . . . . . . . . 68 10.4 i 2 c bus interface . . . . . . . . . . . . . . . . . . . . . . 71 10.4.1 data validity . . . . . . . . . . . . . . . . . . . . . . . . . . 72 10.4.2 start and stop conditions. . . . . . . . . . . . . 72 10.4.3 byte format. . . . . . . . . . . . . . . . . . . . . . . . . . . 72 10.4.4 acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . 73 10.4.5 7-bit addressing . . . . . . . . . . . . . . . . . . . . . . . 74 10.4.6 register write access. . . . . . . . . . . . . . . . . . . 74 10.4.7 register read access . . . . . . . . . . . . . . . . . . . 75 10.4.8 high-speed mode. . . . . . . . . . . . . . . . . . . . . . 76 10.4.9 high-speed transfer . . . . . . . . . . . . . . . . . . . . 76 10.4.10 serial data transfer fo rmat in hs mode . . . . . 76 10.4.11 switching between f/s mode and hs mode . 78 10.4.12 pn512 at lower speed modes . . . . . . . . . . . . 78 11 8-bit parallel interface . . . . . . . . . . . . . . . . . . . 78
nxp semiconductors pn512 transmission module ? nxp b.v. 2011. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 18 may 2011 111337 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 11.1 overview of supported host controller interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 11.2 separated read/write stro be . . . . . . . . . . . . . 79 11.3 common read/write strobe . . . . . . . . . . . . . . 79 12 analog interface and contactless uart . . . . 80 12.1 general . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 12.2 tx driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 12.3 rf level detector . . . . . . . . . . . . . . . . . . . . . . 81 12.4 data mode detector . . . . . . . . . . . . . . . . . . . . 82 12.5 serial data switch . . . . . . . . . . . . . . . . . . . . . . 84 12.6 s 2 c interface support . . . . . . . . . . . . . . . . . . . 84 12.6.1 signal shape for felica s 2 c interface support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 12.6.2 waveform shape for iso/iec 14443a and mifare s 2 c support. . . . . . . . . . . . . . . . 87 12.7 hardware support for felica and nfc polling 88 12.7.1 polling sequence functionality for initiator. . . . 88 12.7.2 polling sequence functionality for target . . . . . 88 12.7.3 additional hardware support for felica and nfc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 12.7.4 crc coprocessor . . . . . . . . . . . . . . . . . . . . . . 89 13 fifo buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 13.1 accessing the fifo buffer . . . . . . . . . . . . . . . 90 13.2 controlling the fifo buffer . . . . . . . . . . . . . . . 90 13.3 fifo buffer status information . . . . . . . . . . . . 90 14 interrupt request system. . . . . . . . . . . . . . . . . 91 14.1 interrupt sources overview . . . . . . . . . . . . . . . 91 15 timer unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 16 power reduction modes . . . . . . . . . . . . . . . . . 94 16.1 hard power-down . . . . . . . . . . . . . . . . . . . . . . 94 16.2 soft power-down mode. . . . . . . . . . . . . . . . . . 94 16.3 transmitter power-down mode . . . . . . . . . . . . 94 17 oscillator circuitry . . . . . . . . . . . . . . . . . . . . . . 95 18 reset and oscillator start-up time . . . . . . . . . 95 18.1 reset timing requirements . . . . . . . . . . . . . . . 95 18.2 oscillator start-up time . . . . . . . . . . . . . . . . . . 95 19 pn512 command set . . . . . . . . . . . . . . . . . . . . 96 19.1 general description . . . . . . . . . . . . . . . . . . . . 96 19.2 general behavior . . . . . . . . . . . . . . . . . . . . . . 96 19.3 pn512 command overview. . . . . . . . . . . . . . . 97 19.3.1 pn512 command descriptions . . . . . . . . . . . . 97 19.3.1.1 idle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 19.3.1.2 mem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 19.3.1.3 generate randomid . . . . . . . . . . . . . . . . . . . 97 19.3.1.4 calccrc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 19.3.1.5 transmit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 19.3.1.6 nocmdchange . . . . . . . . . . . . . . . . . . . . . . . . 98 19.3.1.7 receive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 19.3.1.8 transceive . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 19.3.1.9 mfauthent . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 19.3.1.10 softreset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 20 testsignals. . . . . . . . . . . . . . . . . . . . . . . . . . . 100 20.1 selftest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 20.2 testbus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 20.3 testsignals at pin aux . . . . . . . . . . . . . . . . . 101 20.4 prbs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 21 application design-in information. . . . . . . . 102 22 limiting values . . . . . . . . . . . . . . . . . . . . . . . 103 23 recommended operating conditions . . . . . 103 24 thermal characteristics . . . . . . . . . . . . . . . . 104 25 characteristics . . . . . . . . . . . . . . . . . . . . . . . 104 25.1 timing characteristics . . . . . . . . . . . . . . . . . 107 25.2 8-bit parallel interface timing . . . . . . . . . . . . . 110 25.2.1 ac symbols . . . . . . . . . . . . . . . . . . . . . . . . . . 110 25.2.2 ac operating specification . . . . . . . . . . . . . . . 110 25.2.2.1 bus timing for separated read/write strobe . 110 25.2.2.2 bus timing for common read/write strobe . . 111 26 package information. . . . . . . . . . . . . . . . . . . . 113 27 package outline. . . . . . . . . . . . . . . . . . . . . . . . 114 28 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 116 29 glossary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 30 references. . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 31 revision history . . . . . . . . . . . . . . . . . . . . . . . 117 32 legal information . . . . . . . . . . . . . . . . . . . . . . 118 32.1 data sheet status . . . . . . . . . . . . . . . . . . . . . . 118 32.2 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 32.3 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . 118 32.4 licenses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 32.5 trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 119 33 contact information . . . . . . . . . . . . . . . . . . . . 119 34 tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 35 figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 36 contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124


▲Up To Search▲   

 
Price & Availability of PN5120A0HN1

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X